Skip to content

Commit 9db6402

Browse files
refactor(addon/components/-focusable): use better english.
1 parent a80286f commit 9db6402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/components/-focusable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { action } from '@ember/object';
1717
*
1818
* Use the following as a base:
1919
* ```hbs
20-
* <myTag class='{{if this.focused " md-focused"}}' disabled={{this.disabled}} tabindex={{if this.disabled "-1" "0"}} {{did-insert this.registerListeners}} {{will-destroy this.unregisterListeners}} ...attributes>
20+
* <myTag class='{{if this.focused " md-focused"}}' disabled={{this.disabled}} tabindex={{if this.disabled "-1" "0"}} {{did-insert this.registerListeners}} {{will-destroy this.deregisterListeners}} ...attributes>
2121
* </myTag>
2222
* ```
2323
*/
@@ -68,7 +68,7 @@ export default class Focusable extends Component {
6868
});
6969
}
7070

71-
@action unregisterListeners(element) {
71+
@action deregisterListeners(element) {
7272
element.removeEventListener('focusin', this.handleFocusIn);
7373
element.removeEventListener('focusout', this.handleFocusOut);
7474
element.removeEventListener('mousedown', this.handleMouseDown);

0 commit comments

Comments
 (0)