Apply the fix, suggested by Github userx4080, issue 1371

This commit is contained in:
Erjan Gavalji
2016-02-04 15:58:38 +02:00
parent 343e15679b
commit 69ef5ffc49

View File

@ -151,17 +151,17 @@ export class ListView extends common.ListView {
var length = keys.length;
var view: viewModule.View;
var key;
for (i = 0; i < length; i++) {
key = keys[i];
view = this._realizedItems[key];
this.notify({
eventName: ITEMLOADING,
object: this,
index: view[REALIZED_INDEX],
view: view
});
if (view[REALIZED_INDEX] < this.items.length) {
this.notify({
eventName: ITEMLOADING,
object: this,
index: view[REALIZED_INDEX],
view: view
});
}
}
}
}
@ -251,4 +251,4 @@ function ensureListViewAdapterClass() {
}
ListViewAdapterClass = ListViewAdapter;
}
}