mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 01:17:58 +01:00
Whitespace fixes.
This commit is contained in:
@@ -322,7 +322,7 @@ var EventHive = Class("EventHive", Contexts.Hive, {
|
|||||||
var [self, events] = [null, array.toObject([[event, callback]])];
|
var [self, events] = [null, array.toObject([[event, callback]])];
|
||||||
else {
|
else {
|
||||||
[self, events] = [event, event[callback || "events"]];
|
[self, events] = [event, event[callback || "events"]];
|
||||||
[,, capture, allowUntrusted] = arguments;
|
[, , capture, allowUntrusted] = arguments;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (set.has(events, "input") && !set.has(events, "dactyl-input"))
|
if (set.has(events, "input") && !set.has(events, "dactyl-input"))
|
||||||
|
|||||||
@@ -472,7 +472,7 @@ var HintSession = Class("HintSession", CommandMode, {
|
|||||||
else if (n)
|
else if (n)
|
||||||
hints.setClass(elem, n % 2);
|
hints.setClass(elem, n % 2);
|
||||||
else
|
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--)
|
if (n--)
|
||||||
this.timeout(next, 50);
|
this.timeout(next, 50);
|
||||||
|
|||||||
@@ -278,11 +278,11 @@ var MOW = Module("mow", {
|
|||||||
let elem = this.widget.contentDocument.documentElement;
|
let elem = this.widget.contentDocument.documentElement;
|
||||||
|
|
||||||
if (showHelp)
|
if (showHelp)
|
||||||
this.widgets.message = ["MoreMsg", _("mow.moreHelp")];
|
this.widgets.message = ["MoreMsg", _("mow.moreHelp")];
|
||||||
else if (force || (options["more"] && Buffer.isScrollable(elem, 1)))
|
else if (force || (options["more"] && Buffer.isScrollable(elem, 1)))
|
||||||
this.widgets.message = ["MoreMsg", _("mow.more")];
|
this.widgets.message = ["MoreMsg", _("mow.more")];
|
||||||
else
|
else
|
||||||
this.widgets.message = ["Question", _("mow.continue")];
|
this.widgets.message = ["Question", _("mow.continue")];
|
||||||
},
|
},
|
||||||
|
|
||||||
visible: Modes.boundProperty({
|
visible: Modes.boundProperty({
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ function require(obj, name, from) {
|
|||||||
if (loaded.util)
|
if (loaded.util)
|
||||||
util.reportError(e);
|
util.reportError(e);
|
||||||
else
|
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",
|
"Struct", "StructBase", "Timer", "UTF8", "XPCOM", "XPCOMUtils", "XPCSafeJSObjectWrapper",
|
||||||
"array", "bind", "call", "callable", "ctypes", "curry", "debuggerProperties", "defineModule",
|
"array", "bind", "call", "callable", "ctypes", "curry", "debuggerProperties", "defineModule",
|
||||||
"deprecated", "endModule", "forEach", "isArray", "isGenerator", "isinstance", "isObject",
|
"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"
|
"properties", "require", "set", "update", "values", "withCallerGlobal"
|
||||||
],
|
],
|
||||||
use: ["config", "services", "util"]
|
use: ["config", "services", "util"]
|
||||||
|
|||||||
@@ -450,7 +450,6 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
CmdInput;.dactyl-commandline-command
|
CmdInput;.dactyl-commandline-command
|
||||||
CmdOutput white-space: pre;
|
CmdOutput white-space: pre;
|
||||||
|
|
||||||
|
|
||||||
CompGroup
|
CompGroup
|
||||||
CompGroup:not(:first-of-type) margin-top: .5em;
|
CompGroup:not(:first-of-type) margin-top: .5em;
|
||||||
CompGroup:last-of-type padding-bottom: 1.5ex;
|
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 text-align: center; height: .5ex; line-height: .5ex; margin-bottom: -.5ex;
|
||||||
CompMore::after content: "⌄";
|
CompMore::after content: "⌄";
|
||||||
|
|
||||||
|
|
||||||
Dense margin-top: 0; margin-bottom: 0;
|
Dense margin-top: 0; margin-bottom: 0;
|
||||||
|
|
||||||
|
|
||||||
EditorEditing;;* background: #bbb !important; -moz-user-input: none !important; -moz-user-modify: read-only !important;
|
EditorEditing;;* background: #bbb !important; -moz-user-input: none !important; -moz-user-modify: read-only !important;
|
||||||
EditorError;;* background: red !important;
|
EditorError;;* background: red !important;
|
||||||
EditorBlink1;;* background: yellow !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;
|
HelpList;html|ul;dactyl://help/* display: block; list-style-position: outside; margin: 1em 0;
|
||||||
HelpListItem;html|li;dactyl://help/* display: list-item;
|
HelpListItem;html|li;dactyl://help/* display: list-item;
|
||||||
|
|
||||||
|
|
||||||
HelpNote color: red; font-weight: bold;
|
HelpNote color: red; font-weight: bold;
|
||||||
|
|
||||||
HelpOpt;;;FontCode color: #106326;
|
HelpOpt;;;FontCode color: #106326;
|
||||||
@@ -733,7 +729,6 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
HelpHead4;html|h4;dactyl://help/* {
|
HelpHead4;html|h4;dactyl://help/* {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
HelpTab;html|dl;dactyl://help/* {
|
HelpTab;html|dl;dactyl://help/* {
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ var IO = Module("io", {
|
|||||||
|
|
||||||
outer:
|
outer:
|
||||||
for (let dir in values(dirs)) {
|
for (let dir in values(dirs)) {
|
||||||
for (let [,path] in Iterator(paths)) {
|
for (let [, path] in Iterator(paths)) {
|
||||||
let file = dir.child(path);
|
let file = dir.child(path);
|
||||||
|
|
||||||
dactyl.echomsg(_("io.searchingFor", file.path.quote()), 3);
|
dactyl.echomsg(_("io.searchingFor", file.path.quote()), 3);
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ var options = {};
|
|||||||
|
|
||||||
function testCompleters() {
|
function testCompleters() {
|
||||||
for (var option in dactyl.modules.options)
|
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");
|
dump("OPT COMP " + option.name + " " + value + "\n");
|
||||||
dactyl.testCompleter(option, "completer", value, "Option '" + option.name + "' completer failed");
|
dactyl.testCompleter(option, "completer", value, "Option '" + option.name + "' completer failed");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user