mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 00:02:27 +01:00
Only set options to their default value if they're undefined globally.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user