Thank you for reporting this bug. We will make it our priority to review this report.
waitForReload method in BufferedStore.reload
waitForReload method in BufferedStore.reload
Hi guys,
Think possibly related to this thread here: http://ift.tt/107Z80f
Issue is with the following code:
Code:
waitForReload = function() {
if (me.rangeCached(startIdx, Math.min(endIdx, me.getTotalCount()))) {
me.loading = false;
data.un('pageadd', waitForReload);
records = data.getRange(startIdx, endIdx + 1);
me.fireEvent('load', me, records, true);
me.fireEvent('refresh', me);
}
};It's checking that the range is cached, then asking for something completely different.
It should be:
Code:
waitForReload = function() {
if (me.rangeCached(startIdx, Math.min(endIdx, me.getTotalCount()))) {
me.loading = false;
data.un('pageadd', waitForReload);
records = data.getRange(startIdx, Math.min(endIdx, me.getTotalCount()));
me.fireEvent('load', me, records, true);
me.fireEvent('refresh', me);
}
};Cheers,
Westy
waitForReload method in BufferedStore.reload
Aucun commentaire:
Enregistrer un commentaire