diff --git a/src/modules/infinite-scroll.directive.ts b/src/modules/infinite-scroll.directive.ts index c5a5e753..c40c2115 100644 --- a/src/modules/infinite-scroll.directive.ts +++ b/src/modules/infinite-scroll.directive.ts @@ -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();