Skip to content

Instantly share code, notes, and snippets.

@Ajeey
Created October 15, 2014 11:51
Show Gist options
  • Save Ajeey/7c542109075dfc0ec923 to your computer and use it in GitHub Desktop.
Save Ajeey/7c542109075dfc0ec923 to your computer and use it in GitHub Desktop.
Ember View
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