X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/app/Settings.js diff --git a/docs/app/Settings.js b/docs/app/Settings.js deleted file mode 100644 index 99593db6..00000000 --- a/docs/app/Settings.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Provides access to Docs app settings. - */ -Ext.define("Docs.Settings", { - extend: 'Docs.LocalStore', - storeName: 'Settings', - singleton: true, - - /** - * Saves a setting - * - * @param {String} key Name of the setting - * @param {Mixed} value Value of the setting - */ - set: function(key, value) { - var index = this.store.findExact("key", key); - if (index > -1) { - this.store.getAt(index).set({key: key, value: value}); - } - else { - this.store.add({key: key, value: value}); - } - this.syncStore(); - }, - - /** - * Gets value of a setting. - * - * @param {String} key Name of the setting - * @return {Mixed} value of the setting or undefined. - */ - get: function(key) { - var index = this.store.findExact("key", key); - return index > -1 ? this.store.getAt(index).get("value") : undefined; - } -});