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

Version Path
pageflow-0.7.2 app/assets/javascripts/pageflow/settings.js
pageflow-0.7.1 app/assets/javascripts/pageflow/settings.js
pageflow-0.7.0 app/assets/javascripts/pageflow/settings.js
pageflow-0.6.0 app/assets/javascripts/pageflow/settings.js
pageflow-0.5.0 app/assets/javascripts/pageflow/settings.js
pageflow-0.4.0 app/assets/javascripts/pageflow/settings.js
pageflow-0.3.0 app/assets/javascripts/pageflow/settings.js
pageflow-0.2.1 app/assets/javascripts/pageflow/settings.js
pageflow-0.2.0 app/assets/javascripts/pageflow/settings.js
pageflow-0.1.0 app/assets/javascripts/pageflow/settings.js
pageflow-0.0.5 app/assets/javascripts/pageflow/settings.js
pageflow-0.0.4 app/assets/javascripts/pageflow/settings.js
pageflow-0.0.3 app/assets/javascripts/pageflow/settings.js
pageflow-0.0.2 app/assets/javascripts/pageflow/settings.js
pageflow-0.0.1 app/assets/javascripts/pageflow/settings.js