mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
minibar: remove two more uses of with()
This commit is contained in:
@@ -201,13 +201,10 @@ Minibar.prototype.select_grammar=function(grammar_url) {
|
|||||||
|
|
||||||
Minibar.prototype.change_grammar=function(grammar_info) {
|
Minibar.prototype.change_grammar=function(grammar_info) {
|
||||||
var t=this;
|
var t=this;
|
||||||
with(t) {
|
//debug("show_languages ");
|
||||||
//debug("show_languages ");
|
t.grammar=grammar_info;
|
||||||
grammar=grammar_info;
|
t.input.change_grammar(grammar_info)
|
||||||
|
t.translations.change_grammar(grammar_info)
|
||||||
input.change_grammar(grammar)
|
|
||||||
translations.change_grammar(grammar)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Minibar.prototype.show_grammarinfo=function() {
|
Minibar.prototype.show_grammarinfo=function() {
|
||||||
@@ -281,7 +278,7 @@ Minibar.prototype.try_google=function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Minibar.prototype.open_help=function() {
|
Minibar.prototype.open_help=function() {
|
||||||
with(this) open_popup(options.help_url,"help");
|
open_popup(this.options.help_url,"help");
|
||||||
}
|
}
|
||||||
|
|
||||||
Minibar.prototype.open_feedback=function() {
|
Minibar.prototype.open_feedback=function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user