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

Add missing semicolons.

--HG--
extra : rebase_source : d0f7ae9f98a691c7a721e8203121964d7976447e
This commit is contained in:
Doug Kearns
2011-06-16 01:10:06 +10:00
parent 68629f3fd5
commit 3763e44e3b
18 changed files with 34 additions and 34 deletions

2
common/bootstrap.js vendored
View File

@@ -219,7 +219,7 @@ function init() {
wrappedJSObject: {} wrappedJSObject: {}
}, },
createInstance: function () this.instance createInstance: function () this.instance
}) });
Cc[BOOTSTRAP_CONTRACT].getService().wrappedJSObject.loader = JSMLoader; Cc[BOOTSTRAP_CONTRACT].getService().wrappedJSObject.loader = JSMLoader;

View File

@@ -293,12 +293,12 @@ function XMLChannel(uri, contentType) {
if (doctype) { if (doctype) {
this.writes.push(doctype + "[\n"); this.writes.push(doctype + "[\n");
try { try {
this.writes.push(services.io.newChannel(url, null, null).open()) this.writes.push(services.io.newChannel(url, null, null).open());
} }
catch (e) {} catch (e) {}
if (!open) if (!open)
this.writes.push("\n]"); this.writes.push("\n]");
this.writes.push(post) this.writes.push(post);
} }
this.writes.push(channelStream); this.writes.push(channelStream);

View File

@@ -180,9 +180,9 @@ var Buffer = Module("buffer", {
yield ["Host", identity.getEffectiveHost()]; yield ["Host", identity.getEffectiveHost()];
if (statusline.security === "extended") if (statusline.security === "extended")
yield ["Owner", data.subjectOrg] yield ["Owner", data.subjectOrg];
else else
yield ["Owner", _("pageinfo.s.ownerUnverified", data.subjectOrg)] yield ["Owner", _("pageinfo.s.ownerUnverified", data.subjectOrg)];
if (location(data).length) if (location(data).length)
yield ["Location", location(data)]; yield ["Location", location(data)];
@@ -192,7 +192,7 @@ var Buffer = Module("buffer", {
if (identity._overrideService.hasMatchingOverride(identity._lastLocation.hostname, if (identity._overrideService.hasMatchingOverride(identity._lastLocation.hostname,
(identity._lastLocation.port || 443), (identity._lastLocation.port || 443),
data.cert, {}, {})) data.cert, {}, {}))
yield ["User exception", /*L*/"true"] yield ["User exception", /*L*/"true"];
break; break;
} }
}); });

View File

@@ -852,7 +852,7 @@ var CommandLine = Module("commandline", {
event.target.blur(); event.target.blur();
dactyl.beep(); dactyl.beep();
} }
}, }
} }
), ),
@@ -1246,7 +1246,7 @@ var CommandLine = Module("commandline", {
for (let [, context] in Iterator(list)) { for (let [, context] in Iterator(list)) {
let done = function done() !(idx >= n + context.items.length || idx == -2 && !context.items.length); let done = function done() !(idx >= n + context.items.length || idx == -2 && !context.items.length);
util.waitFor(function () !context.incomplete || done()) util.waitFor(function () !context.incomplete || done());
if (done()) if (done())
break; break;

View File

@@ -1031,7 +1031,7 @@ var Hints = Module("hints", {
onChange: function () { onChange: function () {
this.accepted = true; this.accepted = true;
modes.pop(); modes.pop();
}, }
}); });
}, },

View File

@@ -649,7 +649,7 @@ var Mappings = Module("mappings", {
validator: function (value) Array.concat(value).every(findMode), validator: function (value) Array.concat(value).every(findMode),
completer: function () [[array.compact([mode.name.toLowerCase().replace(/_/g, "-"), mode.char]), mode.description] completer: function () [[array.compact([mode.name.toLowerCase().replace(/_/g, "-"), mode.char]), mode.description]
for (mode in values(modes.all)) for (mode in values(modes.all))
if (!mode.hidden)], if (!mode.hidden)]
}; };
function findMode(name) { function findMode(name) {

View File

@@ -113,7 +113,7 @@ var Modes = Module("modes", {
}); });
this.addMode("OUTPUT_MULTILINE", { this.addMode("OUTPUT_MULTILINE", {
description: "Active when the multi-line output buffer is open", description: "Active when the multi-line output buffer is open",
bases: [this.NORMAL], bases: [this.NORMAL]
}); });
this.addMode("INPUT", { this.addMode("INPUT", {
@@ -267,7 +267,7 @@ var Modes = Module("modes", {
let val = this._modeMap[this._main].display(); let val = this._modeMap[this._main].display();
if (val) if (val)
return "-- " + val + " --" + macromode;; return "-- " + val + " --" + macromode;
return macromode; return macromode;
}, },

View File

@@ -475,8 +475,8 @@ var Addons = Module("addons", {
true)); true));
}); });
} }
} };
} };
completion.extension = function extension(context, types) { completion.extension = function extension(context, types) {
context.title = ["Extension"]; context.title = ["Extension"];

View File

@@ -65,7 +65,7 @@ if (!Object.defineProperties)
Object.defineProperties = function defineProperties(obj, props) { Object.defineProperties = function defineProperties(obj, props) {
for (let [k, v] in Iterator(props)) for (let [k, v] in Iterator(props))
Object.defineProperty(obj, k, v); Object.defineProperty(obj, k, v);
} };
if (!Object.freeze) if (!Object.freeze)
Object.freeze = function freeze(obj) {}; Object.freeze = function freeze(obj) {};
if (!Object.getPropertyDescriptor) if (!Object.getPropertyDescriptor)

View File

@@ -249,12 +249,12 @@ var ConfigBase = Class("ConfigBase", {
</e4x>; </e4x>;
for each (let [id, [name, key, uri]] in Iterator(this.sidebars)) { for each (let [id, [name, key, uri]] in Iterator(this.sidebars)) {
append.XUL::menupopup[0].* += append.XUL::menupopup[0].* +=
<menuitem observes={"pentadactyl-" + id + "Sidebar"} label={name} accesskey={key} xmlns={XUL}/> <menuitem observes={"pentadactyl-" + id + "Sidebar"} label={name} accesskey={key} xmlns={XUL}/>;
append.XUL::broadcasterset[0].* += append.XUL::broadcasterset[0].* +=
<broadcaster id={"pentadactyl-" + id + "Sidebar"} <broadcaster id={"pentadactyl-" + id + "Sidebar"}
autoCheck="false" type="checkbox" group="sidebar" autoCheck="false" type="checkbox" group="sidebar"
sidebartitle={name} sidebarurl={uri} sidebartitle={name} sidebarurl={uri}
oncommand="toggleSidebar(this.id || this.observes);" xmlns={XUL}/> oncommand="toggleSidebar(this.id || this.observes);" xmlns={XUL}/>;
} }
util.overlayWindow(window, { append: append.elements() }); util.overlayWindow(window, { append: append.elements() });

View File

@@ -278,7 +278,7 @@ var Contexts = Module("contexts", {
})), })),
matchingGroups: function (uri) Object.create(this.groupsProto, { matchingGroups: function (uri) Object.create(this.groupsProto, {
groups: { value: this.activeGroups(uri) }, groups: { value: this.activeGroups(uri) }
}), }),
activeGroups: function (uri, doc) { activeGroups: function (uri, doc) {
@@ -313,7 +313,7 @@ var Contexts = Module("contexts", {
if (description) if (description)
group.description = description; group.description = description;
if (filter) if (filter)
group.filter = filter group.filter = filter;
group.persist = persist; group.persist = persist;
} }
@@ -405,7 +405,7 @@ var Contexts = Module("contexts", {
var action = function action() { var action = function action() {
events.feedkeys(action.macro(makeParams(this, arguments)), events.feedkeys(action.macro(makeParams(this, arguments)),
noremap, silent); noremap, silent);
} };
action.macro = util.compileMacro(rhs, true); action.macro = util.compileMacro(rhs, true);
break; break;
@@ -496,9 +496,9 @@ var Contexts = Module("contexts", {
if (args.has("-locations")) if (args.has("-locations"))
group.filter = filter; group.filter = filter;
if (args.has("-description")) if (args.has("-description"))
group.description = args["-description"] group.description = args["-description"];
if (args.has("-nopersist")) if (args.has("-nopersist"))
group.persist = !args["-nopersist"] group.persist = !args["-nopersist"];
} }
if (!group.builtin && args.has("-args")) { if (!group.builtin && args.has("-args")) {

View File

@@ -106,7 +106,7 @@ var Download = Class("Download", {
function action() { function action() {
try { try {
if (this.MIMEInfo && this.MIMEInfo.preferredAction == this.MIMEInfo.useHelperApp) if (this.MIMEInfo && this.MIMEInfo.preferredAction == this.MIMEInfo.useHelperApp)
this.MIMEInfo.launchWithFile(file) this.MIMEInfo.launchWithFile(file);
else else
file.launch(); file.launch();
} }

View File

@@ -175,7 +175,7 @@ var RangeFinder = Module("rangefinder", {
modes.addMode("FIND", { modes.addMode("FIND", {
description: "Find mode, active when typing search input", description: "Find mode, active when typing search input",
bases: [modes.COMMAND_LINE], bases: [modes.COMMAND_LINE]
}); });
modes.addMode("FIND_FORWARD", { modes.addMode("FIND_FORWARD", {
description: "Forward Find mode, active when typing search input", description: "Forward Find mode, active when typing search input",
@@ -398,7 +398,7 @@ var RangeFind = Class("RangeFind", {
var node = util.evaluateXPath(RangeFind.selectNodePath, var node = util.evaluateXPath(RangeFind.selectNodePath,
this.lastRange.commonAncestorContainer).snapshotItem(0); this.lastRange.commonAncestorContainer).snapshotItem(0);
if (node) { if (node) {
node.focus() node.focus();
// Re-highlight collapsed selection // Re-highlight collapsed selection
this.selectedRange = this.lastRange; this.selectedRange = this.lastRange;
} }

View File

@@ -216,7 +216,7 @@ var IO = Module("io", {
defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms");
} }
}, this); }, this);
}, }
}), }),
// TODO: there seems to be no way, short of a new component, to change // TODO: there seems to be no way, short of a new component, to change

View File

@@ -41,7 +41,7 @@ var JavaScript = Module("javascript", {
this.window = window; this.window = window;
init.supercall(this); init.supercall(this);
}, }
}), }),
globals: Class.memoize(function () [ globals: Class.memoize(function () [
@@ -806,7 +806,7 @@ var JavaScript = Module("javascript", {
get completionList() this.widgets.statusbar.commandline.id, get completionList() this.widgets.statusbar.commandline.id,
accept: function accept() { accept: function accept() {
dactyl.trapErrors(function () { this.repl.addOutput(this.command) }, this); dactyl.trapErrors(function () { this.repl.addOutput(this.command); }, this);
this.completions.cleanup(); this.completions.cleanup();
this.history.save(); this.history.save();

View File

@@ -110,7 +110,7 @@ var Messages = Module("messages", {
if (value != null) { if (value != null) {
let name = [this.constructor.className.toLowerCase(), this.identifier || this.name, prop].join("."); let name = [this.constructor.className.toLowerCase(), this.identifier || this.name, prop].join(".");
if (!isObject(value)) if (!isObject(value))
value = messages.get(name, value) value = messages.get(name, value);
else if (isArray(value)) else if (isArray(value))
// Deprecated // Deprecated
iter(value).forEach(function ([k, v]) { iter(value).forEach(function ([k, v]) {
@@ -129,7 +129,7 @@ var Messages = Module("messages", {
}, },
set: function set(val) this[_prop] = val set: function set(val) this[_prop] = val
} };
} }
this.default = prop; this.default = prop;
this.initialized = true; this.initialized = true;

View File

@@ -715,7 +715,7 @@ var Option = Class("Option", {
type: type, type: type,
_op: Option.ops[type] _op: Option.ops[type]
}) });
if (type in Option.getKey) if (type in Option.getKey)
class_.prototype.getKey = Option.getKey[type]; class_.prototype.getKey = Option.getKey[type];

View File

@@ -18,7 +18,7 @@ Components.utils.import("resource://dactyl/bootstrap.jsm");
defineModule("sanitizer", { defineModule("sanitizer", {
exports: ["Range", "Sanitizer", "sanitizer"], exports: ["Range", "Sanitizer", "sanitizer"],
use: ["config"], use: ["config"],
require: ["messages", "prefs", "services", "storage", "template", "util"], require: ["messages", "prefs", "services", "storage", "template", "util"]
}, this); }, this);
let tmp = {}; let tmp = {};
@@ -434,7 +434,7 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
if (args["-host"]) { if (args["-host"]) {
args["-host"].forEach(function (host) { args["-host"].forEach(function (host) {
sanitizer.sanitizing = true; sanitizer.sanitizing = true;
sanitizer.sanitizeItems(items, range, host) sanitizer.sanitizeItems(items, range, host);
}); });
} }
else else
@@ -457,7 +457,7 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
!args["-host"].some(function (host) util.isSubdomain(item.text, host))); !args["-host"].some(function (host) util.isSubdomain(item.text, host)));
modules.completion.domain(context); modules.completion.domain(context);
}, },
type: modules.CommandOption.LIST, type: modules.CommandOption.LIST
}, { }, {
names: ["-older", "-o"], names: ["-older", "-o"],
description: "Sanitize items older than timespan", description: "Sanitize items older than timespan",