Sha256: e2e12636182d92a216a1dc3ac030d29f53e449c8a555d950f1e3389d41398c74
Contents?: true
Size: 452 Bytes
Versions: 15
Compression:
Stored size: 452 Bytes
Contents
pageflow.Settings = Backbone.Model.extend({ defaults: { volume: 1 }, initialize: function() { if (localStorage['pageflow.settings']) { try { this.set(JSON.parse(localStorage['pageflow.settings'])); } catch(e) { pageflow.log(e); } } this.on('change', function() { localStorage['pageflow.settings'] = JSON.stringify(this); }); } }); pageflow.settings = new pageflow.Settings();
Version data entries
15 entries across 15 versions & 1 rubygems