Permalink
Browse files

Updated to Ext 4.1 and fixed the bug with some versions of Chrome tha…

…t don't play nice with autoIncrement
  • Loading branch information...
1 parent 9e2ded4 commit fe0e6c6e0bfaea7e0a16e2e6fe74465deedd96d7 @grgur committed May 13, 2012
Showing with 282 additions and 238 deletions.
  1. +11 −8 Ext.data.proxy.BrowserDB.js
  2. +110 −98 Ext.data.proxy.IndexedDB.js
  3. +131 −117 sample/bdb-cell-editing.js
  4. +18 −10 sample/bdb.appcache
  5. +12 −5 sample/index.html
@@ -4,30 +4,33 @@
* BrowserDB Proxy for Ext JS 4 uses best available browser (local) database to use for your locally stored data
* Currently available: IndexedDB and WebSQL DB
*
- * Version: 0.21
+ * Version: 0.3
*
*/
(function() {
+
var idb = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB,
cfg = {};
/**
* Choose which proxy to extend based on available features. IndexedDB is preferred over Web SQL DB
*/
if (!idb) {
- cfg.extend = 'Ext.data.proxy.WebDB';
+ cfg.extend = 'Ext.data.proxy.WebDB';
cfg.dbInUse = 'webdb';
} else {
- cfg.extend = 'Ext.data.proxy.IndexedDB';
+ cfg.extend = 'Ext.data.proxy.IndexedDB';
cfg.dbInUse = 'idb';
}
Ext.define('Ext.data.proxy.BrowserDB', {
- extend: cfg.extend,
- alias : 'proxy.browserdb',
- alternateClassName: 'Ext.data.proxy.BrowserCache',
+ extend : cfg.extend,
- dbInUse: cfg.dbInUse,
+ alias : 'proxy.browserdb',
+
+ alternateClassName : 'Ext.data.proxy.BrowserCache',
+
+ dbInUse : cfg.dbInUse,
/**
* Route to the right proxy.
@@ -44,4 +47,4 @@
}
});
-})();
+}());
Oops, something went wrong.

0 comments on commit fe0e6c6

Please sign in to comment.