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

fixed options for muttator composer

This commit is contained in:
Martin Stubenschrott
2008-08-13 23:30:40 +00:00
parent ac59056ac8
commit e480e466dc

View File

@@ -77,8 +77,8 @@ liberator.Option = function (names, description, type, defaultValue, scope, gett
var aValue;
if (scope & liberator.options.OPTION_SCOPE_LOCAL)
aValue = liberator.tabs.options[this.name]; // TODO: does that work without has("tabs")?
if (liberator.has("tabs") && (scope & liberator.options.OPTION_SCOPE_LOCAL))
aValue = liberator.tabs.options[this.name];
if ((scope & liberator.options.OPTION_SCOPE_GLOBAL) && (aValue == undefined))
aValue = value;
@@ -98,7 +98,7 @@ liberator.Option = function (names, description, type, defaultValue, scope, gett
else
scope = this.scope;
if (scope & liberator.options.OPTION_SCOPE_LOCAL)
if (liberator.has("tabs") && (scope & liberator.options.OPTION_SCOPE_LOCAL))
liberator.tabs.options[this.name] = newValue;
if (scope & liberator.options.OPTION_SCOPE_GLOBAL)
value = newValue;