From e480e466dcba1591175adf5c638393fec296fef6 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Wed, 13 Aug 2008 23:30:40 +0000 Subject: [PATCH] fixed options for muttator composer --- content/options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/options.js b/content/options.js index af9ca6d3..9ed62c32 100644 --- a/content/options.js +++ b/content/options.js @@ -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;