Skip to content

Commit ea84027

Browse files
ADjenkovsis0k0
authored andcommitted
refactor: Remove ChangeDetectorRef parameter
reason: angular/angular#14311
1 parent e7229f7 commit ea84027

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: nativescript-angular/directives/list-view-comp.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,14 @@ export class ListViewComponent implements DoCheck, OnDestroy, AfterContentInit {
8888
}
8989
if (needDiffer && !this._differ && isListLikeIterable(value)) {
9090
this._differ = this._iterableDiffers.find(this._items)
91-
.create(this._cdr, (_index, item) => { return item; });
91+
.create((_index, item) => { return item; });
9292
}
9393

9494
this.listView.items = this._items;
9595
}
9696

9797
constructor(_elementRef: ElementRef,
98-
private _iterableDiffers: IterableDiffers,
99-
private _cdr: ChangeDetectorRef) {
98+
private _iterableDiffers: IterableDiffers) {
10099
this.listView = _elementRef.nativeElement;
101100

102101
this.listView.on("itemLoading", this.onItemLoading, this);

0 commit comments

Comments
 (0)