PDA

View Full Version : [FIXED]Bug in Ext.data.Model.setProxy()



n3rd
8 Mar 2011, 12:53 AM
Consider the following code in Ext.data.Model:


setProxy: function(proxy) {
//make sure we have an Ext.data.Proxy object
if (typeof proxy == "string") {
proxy = {
type: proxy
};
}

proxy = Ext.createByAlias("proxy." + proxy.type, proxy);
proxy.setModel(this);
this.proxy = this.prototype.proxy = proxy;

return proxy;
}

The documentation says that the proxy-parameter can also be an instance of Ext.data.Proxy, while the above code clearly does not allow for that.

Thanks a lot in advance for fixing this :-)

evant
9 Mar 2011, 1:33 AM
Resolved, thanks for the report.