-
Notifications
You must be signed in to change notification settings - Fork 286
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
Refactor duplication #792
Refactor duplication #792
Conversation
ember_debug/mixins/port-mixin.js
Outdated
removePortListeners() { | ||
/** | ||
* Setup or tear down port listeners. Call on `init` and `willDestroy` | ||
* @param onOrOff 'on' or 'off' the functions to call i.e. port.on or port.off for adding or removing listeners |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@param {String} onOrOff
app/controllers/component-tree.js
Outdated
expandAll() { | ||
/** | ||
* Expand or collapse all component nodes | ||
* @param {boolean} expanded If true, expanded, if false, collapsed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{Boolean}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that a standard to capitalize the types?
Just some light refactoring to remove a bit of duplication