Sha256: 041d426f34ad37c960deed941babde21e0707faf41151e3138cb0d9c1860d62a
Contents?: true
Size: 640 Bytes
Versions: 2
Compression:
Stored size: 640 Bytes
Contents
(function() { var Spine; Spine = this.Spine || require('spine'); Spine.Model.Local = { extended: function() { this.change(this.saveLocal); return this.fetch(this.loadLocal); }, saveLocal: function() { var result; result = JSON.stringify(this); return localStorage[this.className] = result; }, loadLocal: function() { var result; result = localStorage[this.className]; return this.refresh(result || [], { clear: true }); } }; if (typeof module !== "undefined" && module !== null) { module.exports = Spine.Model.Local; } }).call(this);
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flipper-ui-0.2.0.beta2 | lib/flipper/ui/public/js/spine/local.js |
flipper-ui-0.2.0.beta1 | lib/flipper/ui/public/js/spine/local.js |