Skip to content

Commit

Permalink
Merge pull request #145 from ilucin/master
Browse files Browse the repository at this point in the history
Prevent load more action when component is destroying or destroyed
  • Loading branch information
hhff committed Mar 11, 2016
2 parents 00198a7 + b226846 commit f1408ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/infinity-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const InfinityLoaderComponent = Ember.Component.extend({
},

_shouldLoadMore() {
if (this.get('developmentMode')) {
if (this.get('developmentMode') || this.isDestroying || this.isDestroyed) {
return false;
}

Expand Down

0 comments on commit f1408ea

Please sign in to comment.