diff --git a/common/content/commands.js b/common/content/commands.js index 04be0067..efd02ed4 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -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]; } diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 05bada8c..61244421 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -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); diff --git a/common/content/editor.js b/common/content/editor.js index 65690146..b016c272 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -520,7 +520,7 @@ const Editor = Module("editor", { addMovementMap(["gg", ""], false, "completeMove", false, "cmd_moveTop", "cmd_selectTop"); addMovementMap(["G", ""], false, "completeMove", true, "cmd_moveBottom", "cmd_selectBottom"); addMovementMap(["0", "^", ""], false, "intraLineMove", false, "cmd_beginLine", "cmd_selectBeginLine"); - addMovementMap(["$", ""], false, "intraLineMove", true, "cmd_endLine" , "cmd_selectEndLine" ); + addMovementMap(["$", ""], false, "intraLineMove", true, "cmd_endLine" , "cmd_selectEndLine"); addBeginInsertModeMap(["i", ""], []); addBeginInsertModeMap(["a"], ["cmd_charNext"]); diff --git a/common/content/finder.js b/common/content/finder.js index b9ceb1cc..f1ac7e0c 100644 --- a/common/content/finder.js +++ b/common/content/finder.js @@ -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); diff --git a/common/content/modes.js b/common/content/modes.js index 36d06ef3..e9b7d51b 100644 --- a/common/content/modes.js +++ b/common/content/modes.js @@ -322,7 +322,7 @@ const Modes = Module("modes", { modes.getMode(this.main).name + (!this.extended ? "" : "(" + - [modes.getMode(1<= 0)) diff --git a/common/modules/services.jsm b/common/modules/services.jsm index 07bc9ea3..406539ec 100644 --- a/common/modules/services.jsm +++ b/common/modules/services.jsm @@ -55,7 +55,6 @@ const Services = Module("Services", { this.add("windowMediator", "@mozilla.org/appshell/window-mediator;1", Ci.nsIWindowMediator); this.add("windowWatcher", "@mozilla.org/embedcomp/window-watcher;1", Ci.nsIWindowWatcher); - this.addClass("file", "@mozilla.org/file/local;1", Ci.nsILocalFile); this.addClass("file:", "@mozilla.org/network/protocol;1?name=file", Ci.nsIFileProtocolHandler); this.addClass("find", "@mozilla.org/embedcomp/rangefind;1", Ci.nsIFind); diff --git a/common/modules/util.jsm b/common/modules/util.jsm index 73e71e53..a7327526 100644 --- a/common/modules/util.jsm +++ b/common/modules/util.jsm @@ -789,13 +789,13 @@ const Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]) if (field instanceof Ci.nsIDOMHTMLInputElement && field.type == "submit") elems.push(encode(field.name, field.value)); - for (let [,elem] in iter(form.elements)) { + for (let [, elem] in iter(form.elements)) { if (set.has(util.editableInputs, elem.type) || /^(?:hidden|textarea)$/.test(elem.type) || elem.checked && /^(?:checkbox|radio)$/.test(elem.type)) elems.push(encode(elem.name, elem.value, elem === field)); else if (elem instanceof Ci.nsIDOMHTMLSelectElement) { - for (let [,opt] in Iterator(elem.options)) + for (let [, opt] in Iterator(elem.options)) if (opt.selected) elems.push(encode(elem.name, opt.value)); } diff --git a/pentadactyl/content/config.js b/pentadactyl/content/config.js index 00e65748..120b3a07 100644 --- a/pentadactyl/content/config.js +++ b/pentadactyl/content/config.js @@ -70,7 +70,7 @@ const Config = Module("config", ConfigBase, { pagesource: ["View page source", function () { window.BrowserViewSourceOfDocument(content.document); }], passwords: ["Passwords dialog", - function () { window.openDialog("chrome://passwordmgr/content/passwordManager.xul"); }], + function () { window.openDialog("chrome://passwordmgr/content/passwordManager.xul"); }], places: ["Places Organizer: Manage your bookmarks and history", function () { PlacesCommandHook.showPlacesOrganizer(ORGANIZER_ROOT_BOOKMARKS); }], preferences: ["Show Firefox preferences dialog",