I\'m working on a project and I\'m really trying to write object-oriented JavaScript code. I have just started reading Douglas Crockford\'s JavaScript: The Good Parts and I\'m q
If it's not a jquery plugin, I would write something like this:
var app = { init: function(){ app.SetUpElements(); }, SetUpElements: function() { return 'something'; }, etc: function() { } }; $(document).ready(app.init);