PDA

View Full Version : [FIXED][3.x >=r3650] Ext.data.DataProxy's constructor overwrites api-config



dj
12 Apr 2009, 9:38 AM
From SVN Revision 3650 upwards (currently I'm working with SVN Revision 3674) the constructor of Ext.data.DataProxy overrides the api-config that e.g. Ext.data.DirectProxy writes before calling its superclass constructor. This renders the Ext.data.DirectProxy useless.

To fix this, change lines 17-22 of src/data/DataProxy.js from


this.api = {
load : undefined,
create : undefined,
save : undefined,
destroy : undefined
};

to


Ext.applyIf(this,{
api : {
load : undefined,
create : undefined,
save : undefined,
destroy : undefined
}
});

makana
17 Apr 2009, 6:16 AM
Now,


this.api = {
load : undefined,
create : undefined,
save : undefined,
destroy : undefined
}

is not defined in Ext.data.DataProxy, so you have to specify it in every extend of DataProxy.

Please also visit this:
http://extjs.com/forum/showthread.php?p=317953#post317953

dj
17 Apr 2009, 7:04 AM
It got fixed in revision 3714. This bug can be closed.