Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you offer some guidance on where to put global patches? #89

Open
lastobelus opened this issue Sep 16, 2013 · 0 comments
Open

Can you offer some guidance on where to put global patches? #89

lastobelus opened this issue Sep 16, 2013 · 0 comments

Comments

@lastobelus
Copy link

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
  }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant