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

Show deprecation warning when using didInitAttrs #13207

Merged
merged 1 commit into from
Mar 30, 2016

Conversation

stearagon
Copy link

Deprecation Guide
Related Issue

This adds deprecation warning when using didInitAttrs. The preferred way is to now use init. Refer to related issue for more details.

@rwjblue
Copy link
Member

rwjblue commented Mar 28, 2016

This looks great! Can we also deprecate the following:

export default Ember.Component.extend({
  doStuff: Ember.on('didInitAttrs', function() {
    // stuff!!!!!
  })
});

@stearagon stearagon force-pushed the deprecate-did-init-attrs branch 2 times, most recently from 7234209 to bb396fc Compare March 29, 2016 21:31
@stearagon
Copy link
Author

@rwjblue added deprecation for Ember.on('didInitAttrs'....
review?

@rwjblue
Copy link
Member

rwjblue commented Mar 30, 2016

Awesome, thank you!!

@rwjblue rwjblue merged commit ad32d4a into emberjs:master Mar 30, 2016
@willrax willrax deleted the deprecate-did-init-attrs branch March 30, 2016 15:25
brewingcode added a commit to brewingcode/ember-google-publisher-tags that referenced this pull request Jul 21, 2016
For one, didInitAttrs() is deprecated, it is now init():

emberjs/ember.js#13207

For another, didReceiveAttrs() runs on re-render, which might be more
useful.
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

Successfully merging this pull request may close these issues.

2 participants