mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 04:22:26 +01:00
fix typo in Option#set
This commit is contained in:
@@ -108,10 +108,10 @@ liberator.Option = function (names, description, type, defaultValue, scope, gett
|
|||||||
var tmpValue = newValue;
|
var tmpValue = newValue;
|
||||||
var newValue = this.setter.call(this, newValue);
|
var newValue = this.setter.call(this, newValue);
|
||||||
|
|
||||||
if (!newValue === "undefined")
|
if (typeof newValue == "undefined")
|
||||||
{
|
{
|
||||||
newValue = tmpValue;
|
newValue = tmpValue;
|
||||||
liberator.log("DEPRECATED: option setters should return a value");
|
liberator.log("DEPRECATED: '" + this.name + "' setter should return a value");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user