mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 20:42:27 +01:00
whitespace fixes
This commit is contained in:
@@ -68,8 +68,8 @@ liberator.Option = function (names, description, type, defaultValue, extraInfo)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.__defineGetter__("globalvalue", function() liberator.options.store.get(cannonName));
|
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));
|
||||||
this.globalvalue = this.defaultValue;
|
this.globalvalue = this.defaultValue;
|
||||||
|
|
||||||
this.get = function (scope)
|
this.get = function (scope)
|
||||||
@@ -167,7 +167,7 @@ liberator.Options = function () //{{{
|
|||||||
{
|
{
|
||||||
// Trigger any setters.
|
// Trigger any setters.
|
||||||
let opt = liberator.options.get(option);
|
let opt = liberator.options.get(option);
|
||||||
if(event == "change" && opt)
|
if (event == "change" && opt)
|
||||||
opt.set(opt.value, liberator.options.OPTION_SCOPE_GLOBAL)
|
opt.set(opt.value, liberator.options.OPTION_SCOPE_GLOBAL)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,14 +54,14 @@ liberator.CommandLine = function () //{{{
|
|||||||
|
|
||||||
get length() this.store.length,
|
get length() this.store.length,
|
||||||
|
|
||||||
get: function(index) this.store.get(index),
|
get: function (index) this.store.get(index),
|
||||||
|
|
||||||
add: function (str)
|
add: function (str)
|
||||||
{
|
{
|
||||||
if (!str)
|
if (!str)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this.store.mutate('filter', function(line) line != str);
|
this.store.mutate('filter', function (line) line != str);
|
||||||
this.store.push(str);
|
this.store.push(str);
|
||||||
this.store.truncate(liberator.options["history"], true);
|
this.store.truncate(liberator.options["history"], true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user