From 8ef77adb1c5735b28301ac348c44399b8a24c24d Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 4 Apr 2011 22:10:28 +1000 Subject: [PATCH] Whitespace fixes. --- common/content/events.js | 2 +- common/content/hints.js | 2 +- common/content/mow.js | 6 +++--- common/modules/base.jsm | 4 ++-- common/modules/config.jsm | 5 ----- common/modules/io.jsm | 2 +- common/tests/functional/testOptions.js | 2 +- 7 files changed, 9 insertions(+), 14 deletions(-) diff --git a/common/content/events.js b/common/content/events.js index 3b8b042d..5997d70f 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -322,7 +322,7 @@ var EventHive = Class("EventHive", Contexts.Hive, { var [self, events] = [null, array.toObject([[event, callback]])]; else { [self, events] = [event, event[callback || "events"]]; - [,, capture, allowUntrusted] = arguments; + [, , capture, allowUntrusted] = arguments; } if (set.has(events, "input") && !set.has(events, "dactyl-input")) diff --git a/common/content/hints.js b/common/content/hints.js index e89f334d..cc59d101 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -472,7 +472,7 @@ var HintSession = Class("HintSession", CommandMode, { else if (n) hints.setClass(elem, n % 2); else - hints.setClass(elem, this.validHints[Math.max(0, this.hintNumber-1)].elem === elem); + hints.setClass(elem, this.validHints[Math.max(0, this.hintNumber - 1)].elem === elem); if (n--) this.timeout(next, 50); diff --git a/common/content/mow.js b/common/content/mow.js index 4e8c0b88..da00d220 100644 --- a/common/content/mow.js +++ b/common/content/mow.js @@ -278,11 +278,11 @@ var MOW = Module("mow", { let elem = this.widget.contentDocument.documentElement; if (showHelp) - this.widgets.message = ["MoreMsg", _("mow.moreHelp")]; + this.widgets.message = ["MoreMsg", _("mow.moreHelp")]; else if (force || (options["more"] && Buffer.isScrollable(elem, 1))) - this.widgets.message = ["MoreMsg", _("mow.more")]; + this.widgets.message = ["MoreMsg", _("mow.more")]; else - this.widgets.message = ["Question", _("mow.continue")]; + this.widgets.message = ["Question", _("mow.continue")]; }, visible: Modes.boundProperty({ diff --git a/common/modules/base.jsm b/common/modules/base.jsm index a57f04ed..55782966 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -205,7 +205,7 @@ function require(obj, name, from) { if (loaded.util) util.reportError(e); else - defineModule.dump(" " + (e.filename || e.fileName) + ":" + e.lineNumber + ": " + e +"\n"); + defineModule.dump(" " + (e.filename || e.fileName) + ":" + e.lineNumber + ": " + e + "\n"); } } @@ -216,7 +216,7 @@ defineModule("base", { "Struct", "StructBase", "Timer", "UTF8", "XPCOM", "XPCOMUtils", "XPCSafeJSObjectWrapper", "array", "bind", "call", "callable", "ctypes", "curry", "debuggerProperties", "defineModule", "deprecated", "endModule", "forEach", "isArray", "isGenerator", "isinstance", "isObject", - "isString", "isSubclass", "iter", "iterAll", "iterOwnProperties","keys", "memoize", "octal", + "isString", "isSubclass", "iter", "iterAll", "iterOwnProperties", "keys", "memoize", "octal", "properties", "require", "set", "update", "values", "withCallerGlobal" ], use: ["config", "services", "util"] diff --git a/common/modules/config.jsm b/common/modules/config.jsm index 4812eb82..07a49de5 100644 --- a/common/modules/config.jsm +++ b/common/modules/config.jsm @@ -450,7 +450,6 @@ var ConfigBase = Class("ConfigBase", { CmdInput;.dactyl-commandline-command CmdOutput white-space: pre; - CompGroup CompGroup:not(:first-of-type) margin-top: .5em; CompGroup:last-of-type padding-bottom: 1.5ex; @@ -478,10 +477,8 @@ var ConfigBase = Class("ConfigBase", { CompMore text-align: center; height: .5ex; line-height: .5ex; margin-bottom: -.5ex; CompMore::after content: "⌄"; - Dense margin-top: 0; margin-bottom: 0; - EditorEditing;;* background: #bbb !important; -moz-user-input: none !important; -moz-user-modify: read-only !important; EditorError;;* background: red !important; EditorBlink1;;* background: yellow !important; @@ -686,7 +683,6 @@ var ConfigBase = Class("ConfigBase", { HelpList;html|ul;dactyl://help/* display: block; list-style-position: outside; margin: 1em 0; HelpListItem;html|li;dactyl://help/* display: list-item; - HelpNote color: red; font-weight: bold; HelpOpt;;;FontCode color: #106326; @@ -733,7 +729,6 @@ var ConfigBase = Class("ConfigBase", { HelpHead4;html|h4;dactyl://help/* { } - HelpTab;html|dl;dactyl://help/* { display: table; width: 100%; diff --git a/common/modules/io.jsm b/common/modules/io.jsm index 5dd2b2fb..bd7b955a 100644 --- a/common/modules/io.jsm +++ b/common/modules/io.jsm @@ -116,7 +116,7 @@ var IO = Module("io", { outer: for (let dir in values(dirs)) { - for (let [,path] in Iterator(paths)) { + for (let [, path] in Iterator(paths)) { let file = dir.child(path); dactyl.echomsg(_("io.searchingFor", file.path.quote()), 3); diff --git a/common/tests/functional/testOptions.js b/common/tests/functional/testOptions.js index c268743b..89301320 100644 --- a/common/tests/functional/testOptions.js +++ b/common/tests/functional/testOptions.js @@ -31,7 +31,7 @@ var options = {}; function testCompleters() { for (var option in dactyl.modules.options) - for (var [,value] in Iterator([""].concat(options[option.name] || []))) { + for (var [, value] in Iterator([""].concat(options[option.name] || []))) { dump("OPT COMP " + option.name + " " + value + "\n"); dactyl.testCompleter(option, "completer", value, "Option '" + option.name + "' completer failed"); }