Skip to content

Commit 3766f76

Browse files
refactor(addon/components/paper-button): uses this.parent and documents parent types.
1 parent c518fe9 commit 3766f76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

addon/components/paper-button.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class PaperButton extends Focusable {
1717
element;
1818
/**
1919
* The parent this component is bound to.
20-
* @type {Boolean}
20+
* @type {PaperForm|PaperItem|PaperTabs}
2121
*/
2222
parent;
2323
/**
@@ -54,7 +54,7 @@ export default class PaperButton extends Focusable {
5454
this.registerListeners(element);
5555

5656
if (this.shouldRegister) {
57-
this.args.parentComponent.registerChild(this);
57+
this.parent.registerChild(this);
5858
}
5959
}
6060

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

7979
if (this.shouldRegister) {
80-
this.args.parentComponent.unregisterChild(this);
80+
this.parent.unregisterChild(this);
8181
}
8282
}
8383

0 commit comments

Comments
 (0)