Skip to content

Commit eadb33c

Browse files
authored
avoid using this.set (fixes #1275) (#1276)
Right now, the DocsKeyboardShortcutsComponent attempts to use `this.set` to set a property. DocsKeyboardShortcutsComponent is a Glimmer Component, so this API is not available. To avoid the problem, let's use a regular assignment statement.
1 parent 9b6737c commit eadb33c

File tree

1 file changed

+2
-2
lines changed
  • addon/components/docs-keyboard-shortcuts

1 file changed

+2
-2
lines changed

addon/components/docs-keyboard-shortcuts/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export default class DocsKeyboardShortcutsComponent extends Component {
2222
@onKey('KeyG', { event: 'keyup' })
2323
goto() {
2424
if (!formElementHasFocus()) {
25-
this.set('isGoingTo', true);
25+
this.isGoingTo = true;
2626
later(() => {
27-
this.set('isGoingTo', false);
27+
this.isGoingTo = false;
2828
}, 500);
2929
}
3030
}

0 commit comments

Comments
 (0)