minibar: remove two more uses of with()

This commit is contained in:
hallgren
2013-04-25 15:08:26 +00:00
parent 7fe4ff8c46
commit c841c2c3c9

View File

@@ -201,13 +201,10 @@ Minibar.prototype.select_grammar=function(grammar_url) {
Minibar.prototype.change_grammar=function(grammar_info) {
var t=this;
with(t) {
//debug("show_languages ");
grammar=grammar_info;
input.change_grammar(grammar)
translations.change_grammar(grammar)
}
//debug("show_languages ");
t.grammar=grammar_info;
t.input.change_grammar(grammar_info)
t.translations.change_grammar(grammar_info)
}
Minibar.prototype.show_grammarinfo=function() {
@@ -281,7 +278,7 @@ Minibar.prototype.try_google=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() {