diff --git a/content/bookmarks.js b/content/bookmarks.js index a2d65f34..eab64056 100644 --- a/content/bookmarks.js +++ b/content/bookmarks.js @@ -996,7 +996,7 @@ function QuickMarks() //{{{ } } - let items = ({title: mark, url: qmarks.get(mark)} for each (mark in marks)); + let items = ({ title: mark, url: qmarks.get(mark) } for each (mark in marks)); let list = template.bookmarks("QuickMark", items); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } diff --git a/content/completion.js b/content/completion.js index 658e090c..5c813574 100644 --- a/content/completion.js +++ b/content/completion.js @@ -479,7 +479,7 @@ function Completion() //{{{ completer = obj[func].liberatorCompleter; } catch (e) {} - liberator.dump({call: completer, func: func, obj: obj, string: string, args: "args"}); + liberator.dump({ call: completer, func: func, obj: obj, string: string, args: "args" }); if (!completer) return [0, []]; diff --git a/content/events.js b/content/events.js index b0229f48..89a2b524 100644 --- a/content/events.js +++ b/content/events.js @@ -157,7 +157,7 @@ function AutoCommands() //{{{ if (!autocommands.get(event).some(function (c) c.pattern.test(url))) liberator.echo("No matching autocommands"); else - autocommands.trigger(event, {url: url}); + autocommands.trigger(event, { url: url }); } }, { @@ -187,7 +187,7 @@ function AutoCommands() //{{{ liberator.log("DEPRECATED: the events list arg to autocommands.add() should be an array of event names"); } events.forEach(function (event) - store.push({event: event, pattern: RegExp(regex), command: cmd})); + store.push({ event: event, pattern: RegExp(regex), command: cmd })); }, get: function (event, regex) @@ -862,7 +862,7 @@ function Events() //{{{ var wasFeeding = this.feedingKeys; this.feedingKeys = true; var wasSilent = commandline.silent; - if(silent) + if (silent) commandline.silent = silent; try @@ -937,7 +937,7 @@ function Events() //{{{ finally { this.feedingKeys = wasFeeding; - if(silent) + if (silent) commandline.silent = wasSilent; } return i == keys.length; @@ -1513,7 +1513,7 @@ function Events() //{{{ buffer.loaded = 0; statusline.updateProgress(0); - autocommands.trigger("PageLoadPre", {url: buffer.URL}); + autocommands.trigger("PageLoadPre", { url: buffer.URL }); // don't reset mode if a frame of the frameset gets reloaded which // is not the focused frame @@ -1555,7 +1555,7 @@ function Events() //{{{ statusline.updateUrl(); statusline.updateProgress(); - autocommands.trigger("LocationChange", {url: buffer.URL}); + autocommands.trigger("LocationChange", { url: buffer.URL }); // if this is not delayed we get the position of the old buffer setTimeout(function () { statusline.updateBufferPosition(); }, 100); diff --git a/content/liberator-overlay.js b/content/liberator-overlay.js index 815facc9..6e80cd50 100644 --- a/content/liberator-overlay.js +++ b/content/liberator-overlay.js @@ -7,7 +7,8 @@ var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader); - function load(script) { + function load(script) + { try { loader.loadSubScript(BASE + script, modules) @@ -42,3 +43,4 @@ })() +// vim: set fdm=marker sw=4 ts=4 et: diff --git a/content/mail.js b/content/mail.js index e27b4206..8762fa97 100644 --- a/content/mail.js +++ b/content/mail.js @@ -54,7 +54,7 @@ function Mail() //{{{ if (folder) { var msgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder); - autocommands.trigger("FolderLoaded", {url: msgFolder}); + autocommands.trigger("FolderLoaded", { url: msgFolder }); // Jump to a message when requested var indices = []; diff --git a/content/ui.js b/content/ui.js index c70bf9ff..9801444e 100644 --- a/content/ui.js +++ b/content/ui.js @@ -554,7 +554,7 @@ function CommandLine() //{{{ get silent() silent, set silent(val) { silent = val; - if(silent) + if (silent) storage.styles.addSheet("silent-mode", "chrome://*", "#liberator-commandline > * { opacity: 0 }", true, true); else storage.styles.removeSheet("silent-mode", null, null, null, true);