Skip to content

Commit

Permalink
refactor(addon/components/paper-button): uses this.parent and docum…
Browse files Browse the repository at this point in the history
…ents `parent` types.
  • Loading branch information
matthewhartstonge committed Nov 13, 2024
1 parent c518fe9 commit 3766f76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/components/paper-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class PaperButton extends Focusable {
element;
/**
* The parent this component is bound to.
* @type {Boolean}
* @type {PaperForm|PaperItem|PaperTabs}
*/
parent;
/**
Expand Down Expand Up @@ -54,7 +54,7 @@ export default class PaperButton extends Focusable {
this.registerListeners(element);

if (this.shouldRegister) {
this.args.parentComponent.registerChild(this);
this.parent.registerChild(this);
}
}

Expand All @@ -77,7 +77,7 @@ export default class PaperButton extends Focusable {
super.willDestroy(...arguments);

if (this.shouldRegister) {
this.args.parentComponent.unregisterChild(this);
this.parent.unregisterChild(this);
}
}

Expand Down

0 comments on commit 3766f76

Please sign in to comment.