1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-27 14:35:46 +01:00

Whitespace fixes.

--HG--
extra : rebase_source : 7bc98c4cf1a8ca89cfbfb1f96ffe9fa72565c663
This commit is contained in:
Doug Kearns
2010-11-05 00:52:40 +11:00
parent 4f5fd70ab2
commit 26e130bd0b
10 changed files with 18 additions and 19 deletions

View File

@@ -8,7 +8,6 @@
/** @scope modules */
/**
* A structure representing the options available for a command.
*
@@ -149,7 +148,6 @@ const Command = Class("Command", {
if (args.bang && !this.bang)
throw FailedAssertion("E477: No ! allowed");
dactyl.trapErrors(function exec(command) {
if (this.always)
this.always(args, modifiers);
@@ -709,9 +707,9 @@ const Commands = Module("commands", {
}
let [count, arg, quote] = Commands.parseArg(str, null, keepQuotes);
if (quote == "\\" && !complete)
return [,,,"Trailing \\"];
return [, , , "Trailing \\"];
if (quote && !complete)
return [,,,"E114: Missing quote: " + quote];
return [, , , "E114: Missing quote: " + quote];
return [count, arg, quote];
}

View File

@@ -527,7 +527,7 @@ const Dactyl = Module("dactyl", {
let chrome = {};
let styles = {};
for (let [file,] in Iterator(services.get("dactyl:").FILE_MAP)) {
for (let [file, ] in Iterator(services.get("dactyl:").FILE_MAP)) {
dactyl.open("dactyl://help/" + file);
dactyl.modules.events.waitForPageLoad();
let data = [
@@ -1420,8 +1420,8 @@ const Dactyl = Module("dactyl", {
},
getAddonsByTypes: function (types, callback) {
let res = [];
for (let [,type] in Iterator(types))
for (let [,item] in Iterator(services.get("extensionManager")
for (let [, type] in Iterator(types))
for (let [, item] in Iterator(services.get("extensionManager")
.getItemList(Ci.nsIUpdateItem["TYPE_" + type.toUpperCase()], {})))
res.push(this.getAddonByID(item));
callback(res);

View File

@@ -520,7 +520,7 @@ const Editor = Module("editor", {
addMovementMap(["gg", "<C-Home>"], false, "completeMove", false, "cmd_moveTop", "cmd_selectTop");
addMovementMap(["G", "<C-End>"], false, "completeMove", true, "cmd_moveBottom", "cmd_selectBottom");
addMovementMap(["0", "^", "<Home>"], false, "intraLineMove", false, "cmd_beginLine", "cmd_selectBeginLine");
addMovementMap(["$", "<End>"], false, "intraLineMove", true, "cmd_endLine" , "cmd_selectEndLine" );
addMovementMap(["$", "<End>"], false, "intraLineMove", true, "cmd_endLine" , "cmd_selectEndLine");
addBeginInsertModeMap(["i", "<Insert>"], []);
addBeginInsertModeMap(["a"], ["cmd_charNext"]);

View File

@@ -592,7 +592,7 @@ const RangeFind = Class("RangeFind", {
this.index = index;
this.range = range;
this.document = range.startContainer.ownerDocument;
this.document = range.startContainer.ownerDocument;
this.window = this.document.defaultView;
this.docShell = this.window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
@@ -641,9 +641,9 @@ const RangeFind = Class("RangeFind", {
}
}
}),
contains: function (range, r)
range.compareBoundaryPoints(range.START_TO_END, r) >= 0 &&
range.compareBoundaryPoints(range.END_TO_START, r) <= 0,
contains: function (range, r)
range.compareBoundaryPoints(range.START_TO_END, r) >= 0 &&
range.compareBoundaryPoints(range.END_TO_START, r) <= 0,
endpoint: function (range, before) {
range = range.cloneRange();
range.collapse(before);

View File

@@ -322,7 +322,7 @@ const Modes = Module("modes", {
modes.getMode(this.main).name +
(!this.extended ? "" :
"(" +
[modes.getMode(1<<i).name for (i in util.range(0, 32)) if (this.extended & (1<<i))].join("|") +
[modes.getMode(1 << i).name for (i in util.range(0, 32)) if (this.extended & (1 << i))].join("|") +
")") + "]";
return struct;
})(),