Skip to content

Commit

Permalink
use schedule instead of next
Browse files Browse the repository at this point in the history
  • Loading branch information
bttf committed Aug 11, 2016
1 parent b9024b8 commit 2c80620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/mixins/scroll-operator.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default Ember.Mixin.create({
* now to resume watching scroll position.
*/
setupController(controller) {
Ember.run.next(null, () => {
Ember.run.schedule('afterRender', null, () => {
Ember.$(window).scrollTop(controller.getWithDefault('currentPosition', 0));
this._attachEvents();
});
Expand Down

0 comments on commit 2c80620

Please sign in to comment.