From fdadbe98e8a19b9d48d408ddfc86d4db01b283f2 Mon Sep 17 00:00:00 2001 From: Alexander Djenkov Date: Thu, 2 Nov 2017 13:42:32 +0200 Subject: [PATCH] refactor: Remove ChangeDetectorRef parameter reason: https://github.com/angular/angular/pull/14311 --- nativescript-angular/directives/list-view-comp.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nativescript-angular/directives/list-view-comp.ts b/nativescript-angular/directives/list-view-comp.ts index 351441cce..7cba54526 100644 --- a/nativescript-angular/directives/list-view-comp.ts +++ b/nativescript-angular/directives/list-view-comp.ts @@ -88,15 +88,14 @@ export class ListViewComponent implements DoCheck, OnDestroy, AfterContentInit { } if (needDiffer && !this._differ && isListLikeIterable(value)) { this._differ = this._iterableDiffers.find(this._items) - .create(this._cdr, (_index, item) => { return item; }); + .create((_index, item) => { return item; }); } this.listView.items = this._items; } constructor(_elementRef: ElementRef, - private _iterableDiffers: IterableDiffers, - private _cdr: ChangeDetectorRef) { + private _iterableDiffers: IterableDiffers) { this.listView = _elementRef.nativeElement; this.listView.on("itemLoading", this.onItemLoading, this);