Skip to content

Commit

Permalink
fix: delete unused removeAltKeyObserver from editor view
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonella Sgarlatta committed Aug 9, 2021
1 parent 7697fc4 commit 7849de7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/assets/javascripts/views/editor/editor_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ class EditorViewCtrl extends PureViewCtrl<unknown, EditorState> {
onEditorLoad?: () => void;

private scrollPosition = 0;
private removeAltKeyObserver?: any;
private removeTrashKeyObserver?: any;
private removeTabObserver?: any;

Expand Down Expand Up @@ -142,8 +141,6 @@ class EditorViewCtrl extends PureViewCtrl<unknown, EditorState> {
this.editor.clearNoteChangeListener();
this.removeComponentsObserver();
(this.removeComponentsObserver as any) = undefined;
this.removeAltKeyObserver();
this.removeAltKeyObserver = undefined;
this.removeTrashKeyObserver();
this.removeTrashKeyObserver = undefined;
this.removeTabObserver && this.removeTabObserver();
Expand Down

0 comments on commit 7849de7

Please sign in to comment.