Sanitize variable name
This commit is contained in:
@ -6,7 +6,7 @@ let TranslationFormHook = {
|
||||
this.tunit_editor = this.el.querySelector("#tunit-editor-content")
|
||||
},
|
||||
keyupHandler(e) {
|
||||
var donothing = false
|
||||
var push_event = true
|
||||
var preaction = () => { }
|
||||
var postaction = () => { }
|
||||
var payload = {}
|
||||
@ -29,9 +29,9 @@ let TranslationFormHook = {
|
||||
var handler = "tunit_status"
|
||||
payload = {status: "done"}
|
||||
} else {
|
||||
donothing = true
|
||||
push_event = false
|
||||
}
|
||||
if (!donothing) {
|
||||
if (push_event) {
|
||||
preaction.call()
|
||||
this.pushEventTo(this.el, handler, payload, postaction)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user