FIX: Don't modify properties in `didInsertElement`

This commit is contained in:
Robin Ward 2016-12-01 14:08:00 -05:00
parent eb453d0f82
commit 4820ebd76c
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ export default Ember.Component.extend({
const prevEvent = this.get('prevEvent'); const prevEvent = this.get('prevEvent');
if (prevEvent) { if (prevEvent) {
this._topicScrolled(prevEvent); Ember.run.scheduleOnce('afterRender', this, this._topicScrolled, prevEvent);
} else { } else {
Ember.run.scheduleOnce('afterRender', this, this._updateProgressBar); Ember.run.scheduleOnce('afterRender', this, this._updateProgressBar);
} }