Skip to content

Commit

Permalink
fix(ion-infinite-scroll): Fix error leaving page
Browse files Browse the repository at this point in the history
This fix [5760](#5760)
  • Loading branch information
trongrg committed Mar 24, 2016
1 parent 349c577 commit 05823f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ionic/components/content/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export class Content extends Ion {
this.scrollElement.addEventListener(type, handler);

return () => {
if (!this.scrollElement) { return; }
this.scrollElement.removeEventListener(type, handler);
}
}
Expand Down

0 comments on commit 05823f9

Please sign in to comment.