Loading template/app/LocalStore.js +5 −1 Original line number Diff line number Diff line Loading @@ -4,6 +4,10 @@ * Base class for Settings. */ Ext.define("Docs.LocalStore", { /** * @cfg * Full name of the store class to instantiate. */ storeName: '', /** Loading @@ -14,7 +18,7 @@ Ext.define("Docs.LocalStore", { */ init: function() { this.localStorage = !!window['localStorage']; this.store = Ext.getStore(this.storeName); this.store = Ext.create(this.storeName); if (this.localStorage) { this.cleanup(); Loading template/app/Settings.js +2 −1 Original line number Diff line number Diff line Loading @@ -3,8 +3,9 @@ */ Ext.define("Docs.Settings", { extend: 'Docs.LocalStore', storeName: 'Settings', singleton: true, requires: 'Docs.store.Settings', storeName: 'Docs.store.Settings', // Default values for settings for which undefined doesn't suite. defaults: { Loading template/app/controller/Classes.js +0 −8 Original line number Diff line number Diff line Loading @@ -12,14 +12,6 @@ Ext.define('Docs.controller.Classes', { 'Docs.ClassRegistry' ], stores: [ 'Settings' ], models: [ 'Setting' ], refs: [ { ref: 'viewport', Loading Loading
template/app/LocalStore.js +5 −1 Original line number Diff line number Diff line Loading @@ -4,6 +4,10 @@ * Base class for Settings. */ Ext.define("Docs.LocalStore", { /** * @cfg * Full name of the store class to instantiate. */ storeName: '', /** Loading @@ -14,7 +18,7 @@ Ext.define("Docs.LocalStore", { */ init: function() { this.localStorage = !!window['localStorage']; this.store = Ext.getStore(this.storeName); this.store = Ext.create(this.storeName); if (this.localStorage) { this.cleanup(); Loading
template/app/Settings.js +2 −1 Original line number Diff line number Diff line Loading @@ -3,8 +3,9 @@ */ Ext.define("Docs.Settings", { extend: 'Docs.LocalStore', storeName: 'Settings', singleton: true, requires: 'Docs.store.Settings', storeName: 'Docs.store.Settings', // Default values for settings for which undefined doesn't suite. defaults: { Loading
template/app/controller/Classes.js +0 −8 Original line number Diff line number Diff line Loading @@ -12,14 +12,6 @@ Ext.define('Docs.controller.Classes', { 'Docs.ClassRegistry' ], stores: [ 'Settings' ], models: [ 'Setting' ], refs: [ { ref: 'viewport', Loading