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

[BUGFIX] Add yuidocs for the addon:init method #6910

Merged
merged 1 commit into from
Mar 28, 2017

Conversation

mattmarcum
Copy link
Contributor

Addresses 6780

Just starting the documentation process. Let me know if there's any other relevant info to add in here.

@mattmarcum mattmarcum changed the title Add yuidocs for the addon:init method [BUGFIX] Add yuidocs for the addon:init method Mar 27, 2017
@public
@method init
@param {Project|Addon} parent The project or addon that directly depends on this addon
@param {Project} project The current project (deprecated)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add an @example for this method? I think the this._super() call should actually include the arguments too (e.g. like in https://github.com/babel/ember-cli-babel/blob/4ab3d4a0929c6a4c9420a7bd6c15ed24f6d976f6/index.js#L23)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I used argument destructuring.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think argument destructuring is not available on Node 4 though, and since we don't run Ember CLI itself through Babel we can't use it yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

this._super(parent, project);
this._someCustomSetup();
}
```
Copy link
Member

@Turbo87 Turbo87 Mar 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you change the example to:

init() {
  this._super.init && this._super.init.apply(this, arguments);
  this._someCustomSetup();
}

@Turbo87
Copy link
Member

Turbo87 commented Mar 28, 2017

awesome, thanks. could you squash the commits?

@mattmarcum mattmarcum force-pushed the 6780-docuement-addon-init-method branch from 07175a0 to ec68d39 Compare March 28, 2017 17:06
@mattmarcum
Copy link
Contributor Author

squashed

@Turbo87
Copy link
Member

Turbo87 commented Mar 28, 2017

muchas gracias!

@homu r+

@homu
Copy link
Contributor

homu commented Mar 28, 2017

📌 Commit ec68d39 has been approved by Turbo87

homu added a commit that referenced this pull request Mar 28, 2017
…Turbo87

[BUGFIX] Add yuidocs for the addon:init method

Addresses [6780](#6780)

Just starting the documentation process.  Let me know if there's any other relevant info to add in here.
@homu
Copy link
Contributor

homu commented Mar 28, 2017

⌛ Testing commit ec68d39 with merge d086827...

@homu
Copy link
Contributor

homu commented Mar 28, 2017

☀️ Test successful - status

@homu homu merged commit ec68d39 into ember-cli:master Mar 28, 2017
homu added a commit that referenced this pull request Apr 1, 2017
Backport fixes to release branch

#6912, #6911, #6910 and #6919
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants