app/assets/javascripts/app.js in appjs-rails-1.0.1 vs app/assets/javascripts/app.js in appjs-rails-1.0.2
- old
+ new
@@ -21,10 +21,14 @@
return app[name];
}
return app[name];
};
},
- defined: singletons
+ init: function(name, fn) {
+ app._singleton.add(name, fn);
+ return app[name].init();
+ },
+ listAdded: singletons
},
// free generator http://ajaxload.info/
_ajax: {
addEvent: {
lockAfterClick: function() {