FIX: Avoid double load on discovery model change

This commit is contained in:
Robin Ward 2015-11-17 14:08:33 -05:00
parent 8dc0fa97d4
commit 41e722b8bf

View file

@ -27,7 +27,7 @@ export default Ember.View.extend(LoadMore, UrlRefresh, {
if (scrollTo && scrollTo >= 0) {
Ember.run.schedule('afterRender', () => $(window).scrollTop(scrollTo + 1));
} else {
this.loadMoreUnlessFull();
Ember.run.scheduleOnce('afterRender', this, this.loadMoreUnlessFull);
}
},