1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 22:28:00 +01:00

Whitespace fixes.

This commit is contained in:
Doug Kearns
2011-04-04 22:10:28 +10:00
parent b1f6343fda
commit 8ef77adb1c
7 changed files with 9 additions and 14 deletions

View File

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

View File

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

View File

@@ -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"]

View File

@@ -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%;

View File

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

View File

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