mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 13:54:12 +01:00
whitespace fixes and revert some overly aggressive use of expression closures
This commit is contained in:
@@ -69,7 +69,7 @@ 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.__defineSetter__("globalvalue", function (val) { liberator.options.store.set(cannonName, val); });
|
||||
if (this.globalvalue == undefined)
|
||||
this.globalvalue = this.defaultValue;
|
||||
|
||||
@@ -887,7 +887,7 @@ liberator.Options = function () //{{{
|
||||
}
|
||||
|
||||
// quickly access options with liberator.options["wildmode"]:
|
||||
this.__defineGetter__(option.name, function () { return option.value; });
|
||||
this.__defineGetter__(option.name, function () option.value);
|
||||
this.__defineSetter__(option.name, function (value) { option.value = value; });
|
||||
|
||||
// TODO: sort option
|
||||
|
||||
Reference in New Issue
Block a user