I'm looking over this code:
$(function(){
var $sidescroll = (function() {
init = function() {
//STUFF
};
return { init : init }; //What does this do?
})();
$sidescroll.init();
});
What does the return statement mean? I haven't seen curly braces in a return statement before, and am not even sure what 'init : init' does.