Skip to content

Commit

Permalink
change didInitAttrs -> didReceiveAttrs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brewingcode committed Jul 21, 2016
1 parent 3baa5f9 commit 5150db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/google-publisher-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default Component.extend({
refreshCount: 0,
tracing: false,

didInitAttrs() {
didReceiveAttrs() {
this._super(...arguments);

let {adId, width, height, placement} = getProperties(this, 'adId', 'width', 'height', 'placement');
Expand Down

0 comments on commit 5150db7

Please sign in to comment.