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:
jean-emmanuel 2018-10-10 10:14:48 +02:00 • committed by GitHub
parent ea1cc56059
commit d897077563
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
}
})