Skip to content

Commit

Permalink
changed var to const as per PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-smith committed Nov 19, 2017
1 parent 34397ac commit c6856ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/infinite-scroll.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export class InfiniteScrollDirective
}

ngOnChanges({ infiniteScrollContainer, infiniteScrollDisabled }: SimpleChanges) {
var containerChanged: boolean = inputPropChanged(infiniteScrollContainer);
var disabledChanged: boolean = inputPropChanged(infiniteScrollDisabled)
const containerChanged: boolean = inputPropChanged(infiniteScrollContainer);
const disabledChanged: boolean = inputPropChanged(infiniteScrollDisabled)

if (containerChanged || disabledChanged) {
this.destroyScroller();
Expand Down

0 comments on commit c6856ec

Please sign in to comment.