PDA

View Full Version : [FIXED] ProxyStore is invoking a method that does not exist



jorgemanrubia
2 Jun 2014, 3:09 PM
In the method sync() of ProxyStore.js you can see


if (me.isSyncing) {
Ext.Error.warn('Sync called while a sync operation is in progress. Consider configuring autoSync as false.');
}


Ext.Error.warn does not exist. I imagine it is meant to be Ext.log({level: 'error'}, '...');

I fixed it with an override for the meantime:



Ext.define('Zendone.lib.ext.data.ProxyStore', {
override: 'Ext.data.ProxyStore',


sync: function (options) {
if (!Ext.Error.warn)
Ext.Error.warn = function (message) {
Ext.log({level: 'warning'}, message);
};


return this.callParent(arguments);
}
});

evant
2 Jun 2014, 3:22 PM
Thanks for the report! I have opened a bug in our bug tracker.