ember-tools
ember-tools copied to clipboard
Can you offer some guidance on where to put global patches?
Where should I put global patches? For example, I would like this patch to apply to all views in my application:
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
}
});