X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/app/LocalStore.js diff --git a/docs/app/LocalStore.js b/docs/app/LocalStore.js deleted file mode 100644 index 7bad266f..00000000 --- a/docs/app/LocalStore.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Provides methods dealing with localStorage- and memory-store. - * - * Base class for History and Favorites. - */ -Ext.define("Docs.LocalStore", { - storeName: '', - - /** - * Initializes store management. - * - * Initializes this.store variable and loads the store if - * localStorage available. - */ - init: function() { - this.localStorage = ('localStorage' in window && window['localStorage'] !== null); - this.store = Ext.getStore(this.storeName); - this.localStorage && this.store.load(); - }, - - /** - * Syncs the store with localStorage if possible. - */ - syncStore: function() { - this.localStorage && this.store.sync(); - } - -});