1
0
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:
Kris Maglione
2008-09-14 20:36:43 +00:00
parent a665c842a0
commit 33f530d94a

View File

@@ -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)
{