mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Apply the fix, suggested by Github userx4080, issue 1371
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user