forked from GitHub/gf-core
syntax editor + minibar: fix bug with repeated switching back and forth
By avoiding "this" in callback functions, the code can be kept cleaner.
This commit is contained in:
@@ -41,7 +41,6 @@ function Minibar(server,opts) {
|
||||
|
||||
/* --- Creating the components of the minibar --------------------------- */
|
||||
this.translations=new Translations(server,this.options)
|
||||
this.translations.minibar=this; // ref to parent
|
||||
this.input=new Input(server,this.translations,this.options)
|
||||
|
||||
/* --- Creating user interface elements --------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user