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

fix typo in Option#set

This commit is contained in:
Doug Kearns
2008-09-02 02:04:44 +00:00
parent 6eace3bab5
commit cae090dd6b

View File

@@ -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");
}
}