app/assets/javascripts/spine/local.js in spine-rails-0.0.9 vs app/assets/javascripts/spine/local.js in spine-rails-0.1.0
- old
+ new
@@ -1,9 +1,9 @@
(function() {
- if (typeof Spine === "undefined" || Spine === null) {
- Spine = require('spine');
- }
+
+ if (typeof Spine === "undefined" || Spine === null) Spine = require('spine');
+
Spine.Model.Local = {
extended: function() {
this.change(this.saveLocal);
return this.fetch(this.loadLocal);
},
@@ -18,9 +18,11 @@
return this.refresh(result || [], {
clear: true
});
}
};
+
if (typeof module !== "undefined" && module !== null) {
module.exports = Spine.Model.Local;
}
+
}).call(this);