From 33f530d94a210b2de634143e19245562d6274985 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 14 Sep 2008 20:36:43 +0000 Subject: [PATCH] Only set options to their default value if they're undefined globally. --- content/options.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/options.js b/content/options.js index d665d0b9..4eaa7e44 100644 --- a/content/options.js +++ b/content/options.js @@ -70,7 +70,8 @@ liberator.Option = function (names, description, type, defaultValue, extraInfo) this.__defineGetter__("globalvalue", function () liberator.options.store.get(cannonName)); this.__defineSetter__("globalvalue", function (val) liberator.options.store.set(cannonName, val)); - this.globalvalue = this.defaultValue; + if (this.globalvalue == undefined) + this.globalvalue = this.defaultValue; this.get = function (scope) {