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

Refactor duplication #792

Merged
merged 3 commits into from
May 1, 2018
Merged

Refactor duplication #792

merged 3 commits into from
May 1, 2018

Conversation

RobbieTheWagner
Copy link
Member

Just some light refactoring to remove a bit of duplication

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
Copy link
Contributor

Choose a reason for hiding this comment

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

@param {String} onOrOff

expandAll() {
/**
* Expand or collapse all component nodes
* @param {boolean} expanded If true, expanded, if false, collapsed
Copy link
Contributor

Choose a reason for hiding this comment

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

{Boolean}

Copy link
Member Author

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?

@RobbieTheWagner RobbieTheWagner merged commit 02351d3 into master May 1, 2018
@RobbieTheWagner RobbieTheWagner deleted the refactor-duplication branch May 1, 2018 12:49
teddyzeenny pushed a commit that referenced this pull request May 25, 2018
cyril-sf pushed a commit to cyril-sf/ember-inspector that referenced this pull request Mar 30, 2022
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.

None yet

2 participants