1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 12:17: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: {}
},
createInstance: function () this.instance
})
});
Cc[BOOTSTRAP_CONTRACT].getService().wrappedJSObject.loader = JSMLoader;

View File

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

View File

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

View File

@@ -852,7 +852,7 @@ var CommandLine = Module("commandline", {
event.target.blur();
dactyl.beep();
}
},
}
}
),
@@ -1246,7 +1246,7 @@ var CommandLine = Module("commandline", {
for (let [, context] in Iterator(list)) {
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())
break;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -249,12 +249,12 @@ var ConfigBase = Class("ConfigBase", {
</e4x>;
for each (let [id, [name, key, uri]] in Iterator(this.sidebars)) {
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].* +=
<broadcaster id={"pentadactyl-" + id + "Sidebar"}
autoCheck="false" type="checkbox" group="sidebar"
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() });

View File

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

View File

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

View File

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

View File

@@ -216,7 +216,7 @@ var IO = Module("io", {
defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms");
}
}, this);
},
}
}),
// 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;
init.supercall(this);
},
}
}),
globals: Class.memoize(function () [
@@ -806,7 +806,7 @@ var JavaScript = Module("javascript", {
get completionList() this.widgets.statusbar.commandline.id,
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.history.save();

View File

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

View File

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

View File

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