X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/docs/source/DirectStore.html
diff --git a/docs/source/DirectStore.html b/docs/source/DirectStore.html
index 75933acd..b4a12238 100644
--- a/docs/source/DirectStore.html
+++ b/docs/source/DirectStore.html
@@ -1,5 +1,6 @@
+
The source code
@@ -40,16 +41,18 @@
* @constructor
* @param {Object} config
*/
-Ext.data.DirectStore = function(c){
- // each transaction upon a singe record will generatie a distinct Direct transaction since Direct queues them into one Ajax request.
- c.batchTransactions = false;
-
- Ext.data.DirectStore.superclass.constructor.call(this, Ext.apply(c, {
- proxy: (typeof(c.proxy) == 'undefined') ? new Ext.data.DirectProxy(Ext.copyTo({}, c, 'paramOrder,paramsAsHash,directFn,api')) : c.proxy,
- reader: (typeof(c.reader) == 'undefined' && typeof(c.fields) == 'object') ? new Ext.data.JsonReader(Ext.copyTo({}, c, 'totalProperty,root,idProperty'), c.fields) : c.reader
- }));
-};
-Ext.extend(Ext.data.DirectStore, Ext.data.Store, {});
+Ext.data.DirectStore = Ext.extend(Ext.data.Store, {
+ constructor : function(config){
+ // each transaction upon a singe record will generate a distinct Direct transaction since Direct queues them into one Ajax request.
+ var c = Ext.apply({}, {
+ batchTransactions: false
+ }, config);
+ Ext.data.DirectStore.superclass.constructor.call(this, Ext.apply(c, {
+ proxy: Ext.isDefined(c.proxy) ? c.proxy : new Ext.data.DirectProxy(Ext.copyTo({}, c, 'paramOrder,paramsAsHash,directFn,api')),
+ reader: (!Ext.isDefined(c.reader) && c.fields) ? new Ext.data.JsonReader(Ext.copyTo({}, c, 'totalProperty,root,idProperty'), c.fields) : c.reader
+ }));
+ }
+});
Ext.reg('directstore', Ext.data.DirectStore);