Skip to content

Commit

Permalink
Merge pull request orizens#202 from WandersonAlves/master
Browse files Browse the repository at this point in the history
Watch for changes in infiniteScrollDistance prop
  • Loading branch information
orizens authored Nov 27, 2017
2 parents 791cfa7 + 5b43c41 commit 7a793c4
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 @@ -43,8 +43,8 @@ export class InfiniteScrollDirective
this.setup();
}

ngOnChanges({ infiniteScrollContainer }: SimpleChanges) {
if (inputPropChanged(infiniteScrollContainer)) {
ngOnChanges({ infiniteScrollContainer, infiniteScrollDistance }: SimpleChanges) {
if (inputPropChanged(infiniteScrollContainer) || inputPropChanged(infiniteScrollDistance)) {
this.destroyScroller();
this.setup();
}
Expand Down

0 comments on commit 7a793c4

Please sign in to comment.