Skip to content

Show deprecation warning when using didInitAttrs#13207

Merged
rwjblue merged 1 commit intoemberjs:masterfrom
stearagon:deprecate-did-init-attrs
Mar 30, 2016
Merged

Show deprecation warning when using didInitAttrs#13207
rwjblue merged 1 commit intoemberjs:masterfrom
stearagon:deprecate-did-init-attrs

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.

@stearagon stearagon force-pushed the deprecate-did-init-attrs branch from 51c13ec to 6ebd9a9 Compare March 28, 2016 23:15
@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 stearagon force-pushed the deprecate-did-init-attrs branch from bb396fc to 3f7bc15 Compare March 29, 2016 22:13
@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