Skip to content

Commit

Permalink
Merge pull request #67 from thefrontside/fix-didRender-depercation-bug
Browse files Browse the repository at this point in the history
Remove depercation caused changing data in didRender
  • Loading branch information
Robdel12 committed Aug 14, 2015
2 parents d2cde49 + c6b7617 commit afa358d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/components/x-option.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export default Ember.Component.extend({
* @override
*/
didRender() {
Ember.run.scheduleOnce('afterRender', this, 'registerWithXSelect');
},

registerWithXSelect() {
var select = this.nearestOfType(XSelectComponent);
Ember.assert("x-option component declared without enclosing x-select", !!select);
this.set('select', select);
Expand Down

0 comments on commit afa358d

Please sign in to comment.