Skip to content

Instantly share code, notes, and snippets.

@xypaul
Created May 12, 2014 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xypaul/dd8f59c36a13bf901aff to your computer and use it in GitHub Desktop.
Save xypaul/dd8f59c36a13bf901aff to your computer and use it in GitHub Desktop.
Ember - didInsertElement - afterRenderEvent - Ultimate solution
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