1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-20 23:34:12 +01:00

Run stylebot -- semicolons.

This commit is contained in:
Doug Kearns
2011-02-01 01:06:49 +11:00
parent cf79af7148
commit 37d62cdeba
17 changed files with 44 additions and 48 deletions

View File

@@ -135,7 +135,6 @@ var actions = {
}
};
var Addon = Class("Addon", {
init: function init(addon, list) {
this.addon = addon;
@@ -249,7 +248,6 @@ var Addon = Class("Addon", {
});
});
var AddonList = Class("AddonList", {
init: function init(modules, types, filter) {
this.modules = modules;

View File

@@ -9,7 +9,7 @@ try {
Components.utils.import("resource://dactyl/bootstrap.jsm");
defineModule("javascript", {
exports: ["JavaScript", "javascript"],
use: ["services", "template", "util"],
use: ["services", "template", "util"]
}, this);
// TODO: Clean this up.
@@ -18,7 +18,7 @@ var JavaScript = Module("javascript", {
Local: function (dactyl, modules, window) ({
init: function () {
this.modules = modules;
this.window = window
this.window = window;
this._stack = [];
this._functions = [];

View File

@@ -267,7 +267,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
*/
restore: function (branch) {
this.getNames(this.RESTORE + (branch || "")).forEach(function (pref) {
this.safeSet(pref.substr(this.RESTORE.length), this.get(pref), null, true)
this.safeSet(pref.substr(this.RESTORE.length), this.get(pref), null, true);
this.reset(pref);
}, this);
},

View File

@@ -605,7 +605,7 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
["1h", "Past hour"],
["1d", "Past day"],
["1w", "Past week"]
]
];
},
validator: function (value) /^(a(ll)?|s(ession)|\d+[mhdw])$/.test(value)
});

View File

@@ -199,7 +199,7 @@ var Template = Module("Template", {
XML.ignoreWhitespace = false; XML.prettyPrinting = false;
type = type || (/^'.*'$/.test(topic) ? "HelpOpt" :
/^:\w/.test(topic) ? "HelpEx" : "HelpKey");
return <a highlight={type} tag={topic} href={"dactyl://help-tag/" + topic} dactyl:command="dactyl.help" xmlns:dactyl={NS}>{text || topic}</a>
return <a highlight={type} tag={topic} href={"dactyl://help-tag/" + topic} dactyl:command="dactyl.help" xmlns:dactyl={NS}>{text || topic}</a>;
},
HelpLink: function (topic) {
if (!services["dactyl:"].initialized)
@@ -212,7 +212,7 @@ var Template = Module("Template", {
let tag = (/^'.*'$/.test(topic) ? "o" :
/^:\w/.test(topic) ? "ex" : "k");
topic = topic.replace(/^'(.*)'$/, "$1");
return <{tag} xmlns={NS}>{topic}</{tag}>
return <{tag} xmlns={NS}>{topic}</{tag}>;
},
// if "processStrings" is true, any passed strings will be surrounded by " and
@@ -382,7 +382,7 @@ var Template = Module("Template", {
href={url} path={path} line={frame.lineNumber}
highlight="URL">{
path + ":" + frame.lineNumber
}</a>
}</a>;
},
table: function table(title, data, indent) {