spec/fixtures/foo_model.js in modjs-architecture-0.3.5 vs spec/fixtures/foo_model.js in modjs-architecture-0.4.0
- old
+ new
@@ -1,11 +1,12 @@
(function(app) {
var m = app.add_module("foo_model");
//= require "../models/foo_model.model"
- m.actions = function() {
-
- }
+ m.init = function() {
+ return this;
+ };
- m.run();
+ m.init_when_ready();
+
})(myapp);
\ No newline at end of file