templates/module.js in modjs-architecture-0.3.5 vs templates/module.js in modjs-architecture-0.4.0
- old
+ new
@@ -7,11 +7,12 @@
<% if options[:m] %>
//= require "../models/<%= arguments[1] %>.model"
<% end %>
- m.actions = function() {
+ m.init = function() {
- }
+ };
- m.run();
+ m.init_when_ready();
+
})(<%= blueprint[:name] %>);
\ No newline at end of file