mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 13:22:25 +01:00
Add missing semicolons.
...let the good times roll.
This commit is contained in:
@@ -201,7 +201,7 @@ const AutoCommands = Module("autocommands", {
|
||||
options: [
|
||||
{
|
||||
names: ["-javascript", "-js"],
|
||||
description: "Interperate the action as JavaScript code rather than an ex command",
|
||||
description: "Interperate the action as JavaScript code rather than an ex command"
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -1071,7 +1071,7 @@ const Buffer = Module("buffer", {
|
||||
else if (increment == "pages")
|
||||
increment = elem.clientHeight - fontSize;
|
||||
else
|
||||
throw Error()
|
||||
throw Error();
|
||||
|
||||
elem.scrollTop += number * increment;
|
||||
},
|
||||
@@ -1083,7 +1083,7 @@ const Buffer = Module("buffer", {
|
||||
else if (increment == "pages")
|
||||
increment = elem.clientWidth - fontSize;
|
||||
else
|
||||
throw Error()
|
||||
throw Error();
|
||||
|
||||
elem.scrollLeft += number * increment;
|
||||
},
|
||||
|
||||
@@ -119,7 +119,7 @@ const CommandLine = Module("commandline", {
|
||||
message: document.getElementById("dactyl-message"),
|
||||
|
||||
multilineOutput: document.getElementById("dactyl-multiline-output"),
|
||||
multilineInput: document.getElementById("dactyl-multiline-input"),
|
||||
multilineInput: document.getElementById("dactyl-multiline-input")
|
||||
};
|
||||
|
||||
widgets.command.inputField.QueryInterface(Ci.nsIDOMNSEditableElement);
|
||||
@@ -1611,7 +1611,7 @@ const ItemList = Class("ItemList", {
|
||||
commandline.updateOutputHeight(false, Math.max(0, this._minHeight - this._container.height));
|
||||
|
||||
this._container.height = this._minHeight;
|
||||
this._container.height -= commandline.getSpaceNeeded()
|
||||
this._container.height -= commandline.getSpaceNeeded();
|
||||
commandline.updateOutputHeight(false);
|
||||
this.timeout(function () { this._container.height -= commandline.getSpaceNeeded(); }, 0);
|
||||
},
|
||||
|
||||
@@ -308,7 +308,7 @@ const CompletionContext = Class("CompletionContext", {
|
||||
let res = {};
|
||||
function result(quote) {
|
||||
yield ["result", quote ? function () quote[0] + quote[1](this.text) + quote[2]
|
||||
: function () this.text]
|
||||
: function () this.text];
|
||||
};
|
||||
for (let i in iterall(this.keys, result(this.quote))) {
|
||||
let [k, v] = i;
|
||||
|
||||
@@ -30,7 +30,7 @@ const ConfigBase = Class(ModuleBase, {
|
||||
height: {img.height}px;
|
||||
</>));
|
||||
img = null;
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
styleHelp: function () {
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
"services",
|
||||
"statusline",
|
||||
"styles",
|
||||
"template",
|
||||
"template"
|
||||
].forEach(modules.load);
|
||||
|
||||
prefix.unshift("chrome://" + modules.services.get("dactyl:").name + "/content/");
|
||||
|
||||
@@ -327,7 +327,7 @@ const Dactyl = Module("dactyl", {
|
||||
return this.usereval(
|
||||
"(function (" +
|
||||
Array.slice(arguments, 0, -1).join(", ") +
|
||||
") { " + arguments[arguments.length - 1] + " })")
|
||||
") { " + arguments[arguments.length - 1] + " })");
|
||||
},
|
||||
|
||||
// partial sixth level expression evaluation
|
||||
@@ -617,7 +617,7 @@ const Dactyl = Module("dactyl", {
|
||||
data.push(name);
|
||||
data.push('="');
|
||||
data.push(<>{value}</>.toXMLString());
|
||||
data.push('"')
|
||||
data.push('"');
|
||||
}
|
||||
if (node.localName in empty)
|
||||
data.push(" />");
|
||||
@@ -644,7 +644,7 @@ const Dactyl = Module("dactyl", {
|
||||
.join("\n");
|
||||
addDataEntry("help.css", data.replace(/chrome:[^ ")]+\//g, ""));
|
||||
|
||||
let re = /(chrome:[^ ");]+\/)([^ ");]+)/g;
|
||||
let m, re = /(chrome:[^ ");]+\/)([^ ");]+)/g;
|
||||
while ((m = re.exec(data)))
|
||||
chrome[m[0]] = m[2];
|
||||
|
||||
@@ -1520,7 +1520,7 @@ const Dactyl = Module("dactyl", {
|
||||
|
||||
function callResult(method) {
|
||||
let args = Array.slice(arguments, 1);
|
||||
return function (result) { result[method].apply(result, args) };
|
||||
return function (result) { result[method].apply(result, args); };
|
||||
}
|
||||
|
||||
commands.add(["exta[dd]"],
|
||||
@@ -1774,7 +1774,7 @@ const Dactyl = Module("dactyl", {
|
||||
}, {
|
||||
argcount: "1",
|
||||
completer: function (context) {
|
||||
completion.toolbar(context)
|
||||
completion.toolbar(context);
|
||||
if (filter)
|
||||
context.filters.push(filter);
|
||||
},
|
||||
@@ -1966,7 +1966,7 @@ const Dactyl = Module("dactyl", {
|
||||
};
|
||||
|
||||
completion.window = function window(context) {
|
||||
context.title = ["Window", "Title"]
|
||||
context.title = ["Window", "Title"];
|
||||
context.keys = { text: function (win) dactyl.windows.indexOf(win) + 1, description: function (win) win.document.title };
|
||||
context.completions = dactyl.windows;
|
||||
};
|
||||
|
||||
@@ -45,7 +45,7 @@ const Hints = Module("hints", {
|
||||
t: Mode("Follow hint in a new tab", function (elem) buffer.followLink(elem, dactyl.NEW_TAB)),
|
||||
b: Mode("Follow hint in a background tab", function (elem) buffer.followLink(elem, dactyl.NEW_BACKGROUND_TAB)),
|
||||
w: Mode("Follow hint in a new window", function (elem) buffer.followLink(elem, dactyl.NEW_WINDOW), extended),
|
||||
F: Mode("Open multiple hints in tabs", function (elem) { buffer.followLink(elem, dactyl.NEW_BACKGROUND_TAB); hints.show("F") }),
|
||||
F: Mode("Open multiple hints in tabs", function (elem) { buffer.followLink(elem, dactyl.NEW_BACKGROUND_TAB); hints.show("F"); }),
|
||||
O: Mode("Generate an ':open URL' using hint", function (elem, loc) commandline.open(":", "open " + loc, modes.EX)),
|
||||
T: Mode("Generate a ':tabopen URL' using hint", function (elem, loc) commandline.open(":", "tabopen " + loc, modes.EX)),
|
||||
W: Mode("Generate a ':winopen URL' using hint", function (elem, loc) commandline.open(":", "winopen " + loc, modes.EX)),
|
||||
@@ -444,7 +444,7 @@ const Hints = Module("hints", {
|
||||
|
||||
// OK. return hit. But there's more than one hint, and
|
||||
// there's no tab-selected current link. Do not follow in mode 2
|
||||
dactyl.assert(options["followhints"] != 2 || this._validHints.length == 1 || this._hintNumber)
|
||||
dactyl.assert(options["followhints"] != 2 || this._validHints.length == 1 || this._hintNumber);
|
||||
}
|
||||
|
||||
if (!followFirst) {
|
||||
@@ -928,7 +928,7 @@ const Hints = Module("hints", {
|
||||
[0x249c, 0x24b5, "a"], [0x24b6, 0x24cf, "A"],
|
||||
[0x24d0, 0x24e9, "a"],
|
||||
[0xfb00, 0xfb06, ["ff", "fi", "fl", "ffi", "ffl", "st", "st"]],
|
||||
[0xff21, 0xff3a, "A"], [0xff41, 0xff5a, "a"],
|
||||
[0xff21, 0xff3a, "A"], [0xff41, 0xff5a, "a"]
|
||||
].forEach(function (start, stop, val) {
|
||||
if (typeof a[2] != "string")
|
||||
for (i=start; i <= stop; i++)
|
||||
|
||||
@@ -337,7 +337,7 @@ const JavaScript = Module("javascript", {
|
||||
if (!isNaN(key))
|
||||
return parseInt(key);
|
||||
if (/^[A-Z_][A-Z0-9_]*$/.test(key))
|
||||
return ""
|
||||
return "";
|
||||
return item;
|
||||
}
|
||||
};
|
||||
@@ -363,7 +363,7 @@ const JavaScript = Module("javascript", {
|
||||
this.context.fork(obj[1], this._top.offset, this, this._fill,
|
||||
update(args, {
|
||||
obj: obj[0],
|
||||
name: obj[1],
|
||||
name: obj[1]
|
||||
}));
|
||||
|
||||
if (orig)
|
||||
|
||||
@@ -449,7 +449,7 @@ const Mappings = Module("mappings", {
|
||||
const opts = {
|
||||
completer: function (context, args) {
|
||||
if (args.length == 1)
|
||||
return completion.userMapping(context, args, mapmodes)
|
||||
return completion.userMapping(context, args, mapmodes);
|
||||
if (args["-javascript"])
|
||||
return completion.javascript(context);
|
||||
if (args["-ex"])
|
||||
|
||||
@@ -532,7 +532,7 @@ const Options = Module("options", {
|
||||
this._prefContexts = [];
|
||||
|
||||
for (let [, pref] in Iterator(this.allPrefs(Options.OLD_SAVED))) {
|
||||
let saved = Options.SAVED + pref.substr(Options.OLD_SAVED.length)
|
||||
let saved = Options.SAVED + pref.substr(Options.OLD_SAVED.length);
|
||||
if (!this.getPref(saved))
|
||||
this.setPref(saved, this.getPref(pref));
|
||||
this.resetPref(pref);
|
||||
@@ -1155,13 +1155,13 @@ const Options = Module("options", {
|
||||
if (opt.operator == "-" && isarray(opt.values)) {
|
||||
let have = set([i.text for (i in context.allItems)]);
|
||||
context = context.fork("current-values", 0);
|
||||
context.anchored = optcontext.anchored
|
||||
context.maxItems = optcontext.maxItems
|
||||
context.anchored = optcontext.anchored;
|
||||
context.maxItems = optcontext.maxItems;
|
||||
|
||||
context.filters.push(function (i) !set.has(have, i.text));
|
||||
completion.optionValue(context, opt.name, opt.operator, null,
|
||||
function (context) {
|
||||
context.generate = function () option.values.map(function (o) [o, ""])
|
||||
context.generate = function () option.values.map(function (o) [o, ""]);
|
||||
});
|
||||
context.title = ["Current values"];
|
||||
}
|
||||
@@ -1295,7 +1295,7 @@ const Options = Module("options", {
|
||||
let opt = options.parseOpt(spec);
|
||||
return opt.option && opt.option.privateData &&
|
||||
(!callable(opt.option.privateData) ||
|
||||
opt.option.privateData(opt.values))
|
||||
opt.option.privateData(opt.values));
|
||||
})
|
||||
}, params.extra || {}));
|
||||
});
|
||||
|
||||
@@ -303,7 +303,7 @@ const Tabs = Module("tabs", {
|
||||
return;
|
||||
}
|
||||
|
||||
let tabs = this.visibleTabs
|
||||
let tabs = this.visibleTabs;
|
||||
if (tabs.indexOf(tab) < 0)
|
||||
tabs = this.allTabs;
|
||||
let index = tabs.indexOf(tab);
|
||||
|
||||
Reference in New Issue
Block a user