MartinHN:pr/shortcut_toggle_editor: unify code style
Use "this" and this.enabled instead of ENABLED that might get removed someday
This commit is contained in:
parent
ea1cc56059
commit
d897077563
1 changed files with 5 additions and 2 deletions
|
|
@ -137,8 +137,11 @@ var Editor = class Editor {
|
|||
|
||||
keyboardJS.bind('mod + e', (e)=>{
|
||||
e.preventDefault()
|
||||
if(EDITING){editor.disable()}
|
||||
else{editor.enable()}
|
||||
if (this.enabled) {
|
||||
this.disable()
|
||||
} else {
|
||||
this.enable()
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue