1
0
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:
Doug Kearns
2008-09-11 08:08:50 +00:00
parent 1e69a5f40c
commit 3113c26a86
2 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -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);
} }