mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-29 14:32:51 -06:00
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:
@@ -103,8 +103,7 @@ Translations.prototype.show_translations=function(translationResults) {
|
||||
var tbody=empty("tbody");
|
||||
if(options.show_abstract && t.tree) {
|
||||
function abs_act() {
|
||||
var minibar = self.minibar;
|
||||
bind(self.options.abstract_action,minibar)(t.tree)
|
||||
self.options.abstract_action(t.tree)
|
||||
}
|
||||
var abs_hdr = options.abstract_action
|
||||
? button("Abstract",abs_act)
|
||||
|
||||
Reference in New Issue
Block a user