Skip to content

Commit 3db17a4

Browse files
committed
Remove unused parameter in android list view recycling callbacks.
1 parent 308fa55 commit 3db17a4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tns-core-modules/ui/list-view/list-view.android.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class ListView extends ListViewBase {
7979
}
8080

8181
// clear bindingContext when it is not observable because otherwise bindings to items won't reevaluate
82-
this._realizedItems.forEach((view, nativeView, map) => {
82+
this._realizedItems.forEach((view, nativeView) => {
8383
if (!(view.bindingContext instanceof Observable)) {
8484
view.bindingContext = null;
8585
}
@@ -104,7 +104,7 @@ export class ListView extends ListViewBase {
104104
}
105105

106106
public eachChildView(callback: (child: View) => boolean): void {
107-
this._realizedItems.forEach((view, nativeView, map) => {
107+
this._realizedItems.forEach((view, nativeView) => {
108108
if (view.parent instanceof ListView) {
109109
callback(view);
110110
}
@@ -119,9 +119,9 @@ export class ListView extends ListViewBase {
119119

120120
public _dumpRealizedTemplates() {
121121
console.log(`Realized Templates:`);
122-
this._realizedTemplates.forEach((value, index, map) => {
122+
this._realizedTemplates.forEach((value, index) => {
123123
console.log(`\t${index}:`);
124-
value.forEach((value, index, map) => {
124+
value.forEach((value, index) => {
125125
console.log(`\t\t${index.hashCode()}: ${value}`);
126126
});
127127
});
@@ -130,7 +130,7 @@ export class ListView extends ListViewBase {
130130

131131
private clearRealizedCells(): void {
132132
// clear the cache
133-
this._realizedItems.forEach((view, nativeView, map) => {
133+
this._realizedItems.forEach((view, nativeView) => {
134134
if (view.parent) {
135135
// This is to clear the StackLayout that is used to wrap non LayoutBase & ProxyViewContainer instances.
136136
if (!(view.parent instanceof ListView)) {

0 commit comments

Comments
 (0)