Created
May 12, 2014 20:56
-
-
Save xypaul/dd8f59c36a13bf901aff to your computer and use it in GitHub Desktop.
Ember - didInsertElement - afterRenderEvent - Ultimate solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.View.reopen({ | |
didInsertElement : function(){ | |
this._super(); | |
Ember.run.scheduleOnce('afterRender', this, this.afterRenderEvent); | |
}, | |
afterRenderEvent : function(){ | |
// implement this hook in your own subclasses and run your jQuery logic there | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment