Skip to content

Commit

Permalink
refactor: Remove ChangeDetectorRef parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ADjenkov committed Nov 2, 2017
1 parent b297ef9 commit fdadbe9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nativescript-angular/directives/list-view-comp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fdadbe9

Please sign in to comment.