Skip to content

Commit

Permalink
refactor(addon/components/-focusable): use better english.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhartstonge committed Nov 12, 2024
1 parent a80286f commit 9db6402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/components/-focusable.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { action } from '@ember/object';
*
* Use the following as a base:
* ```hbs
* <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>
* <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>
* </myTag>
* ```
*/
Expand Down Expand Up @@ -68,7 +68,7 @@ export default class Focusable extends Component {
});
}

@action unregisterListeners(element) {
@action deregisterListeners(element) {
element.removeEventListener('focusin', this.handleFocusIn);
element.removeEventListener('focusout', this.handleFocusOut);
element.removeEventListener('mousedown', this.handleMouseDown);
Expand Down

0 comments on commit 9db6402

Please sign in to comment.