1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:48:00 +01:00

Fix the visual bell

This commit is contained in:
Kris Maglione
2008-10-08 17:44:11 +00:00
parent 97d1c1afd9
commit e22bd873ff
4 changed files with 16 additions and 13 deletions

View File

@@ -118,7 +118,7 @@ liberator.Option = function (names, description, type, defaultValue, extraInfo)
if (liberator.has("tabs") && (scope & liberator.options.OPTION_SCOPE_LOCAL))
liberator.tabs.options[this.name] = newValue;
if (scope & liberator.options.OPTION_SCOPE_GLOBAL && newValue != this.globalValue)
if ((scope & liberator.options.OPTION_SCOPE_GLOBAL) && newValue != this.globalValue)
this.globalvalue = newValue;
this.hasChanged = true;
@@ -437,7 +437,6 @@ liberator.Options = function () //{{{
if (!matches)
return null;
ret.scope = modifiers && modifiers.scope;
ret.option = liberator.options.get(ret.name, ret.scope);
@@ -524,6 +523,9 @@ liberator.Options = function () //{{{
}
let opt = parseOpt(args, modifiers);
if (!opt)
return;
let option = opt.option;
// reset a variable to its default value