Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / app / model / Setting.js
diff --git a/docs/app/model/Setting.js b/docs/app/model/Setting.js
new file mode 100644 (file)
index 0000000..aeee2ee
--- /dev/null
@@ -0,0 +1,11 @@
+/**
+ * Key-value pairs of Docs app settings.
+ */
+Ext.define('Docs.model.Setting', {
+    fields: ['id', 'key', 'value'],
+    extend: 'Ext.data.Model',
+    proxy: {
+        type: ('localStorage' in window && window['localStorage'] !== null) ? 'localstorage' : 'memory',
+        id  : 'docs-settings'
+    }
+});