jacombs
30 Apr 2009, 3:01 AM
Somebody has added the line in red below to the constructor for DataProxy:
Ext.data.DataProxy = function(conn){
// make sure we have a config object here to support ux proxies.
// All proxies should now send config into superclass constructor.
conn = conn || {};
Ext.apply(this, conn);
Either this is wrong or you've decided to change the interface for DataProxy.
Now if you pass an Ext.data.Connection object in the constructor, its request method
will overwrite the proxies request method, which results in general mayhem.
Is this by design? Or a mistake?
Ext.data.DataProxy = function(conn){
// make sure we have a config object here to support ux proxies.
// All proxies should now send config into superclass constructor.
conn = conn || {};
Ext.apply(this, conn);
Either this is wrong or you've decided to change the interface for DataProxy.
Now if you pass an Ext.data.Connection object in the constructor, its request method
will overwrite the proxies request method, which results in general mayhem.
Is this by design? Or a mistake?