Dec 15, 2015, 5:23 PM
Now I see that a Store's onProxyLoad original method has been changed to:
Daniil, is it possible to fix it internally?
Ext.data.Store.override({
onProxyLoad: function(operation) {
var me = this,
resultSet = operation.getResultSet(),
records = operation.getRecords(),
successful = operation.wasSuccessful();
if (me.isDestroyed) {
return;
}
if (resultSet && successful) {
me.totalCount = resultSet.getTotal();
me.lastSuccessfulPage = me.currentPage;
}
else {
//Sets the last successful page as the current page
operation._page = me.currentPage = me.lastSuccessfulPage || 1;
}
if (successful) {
records = me.processAssociation(records);
me.loadRecords(records, operation.getAddRecords() ? {
addRecords: true
} : undefined);
} else {
me.loading = false;
}
if (me.hasListeners.load) {
me.fireEvent('load', me, records, successful, operation);
}
me.callObservers('AfterLoad', [
records,
successful,
operation
]);
}
});