From cae090dd6b89de1796f13384c64bf3d8ee535a67 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 2 Sep 2008 02:04:44 +0000 Subject: [PATCH] fix typo in Option#set --- content/options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/options.js b/content/options.js index f56edf98..3c3978bb 100644 --- a/content/options.js +++ b/content/options.js @@ -108,10 +108,10 @@ liberator.Option = function (names, description, type, defaultValue, scope, gett var tmpValue = newValue; var newValue = this.setter.call(this, newValue); - if (!newValue === "undefined") + if (typeof newValue == "undefined") { newValue = tmpValue; - liberator.log("DEPRECATED: option setters should return a value"); + liberator.log("DEPRECATED: '" + this.name + "' setter should return a value"); } }