From 0d35d7c67d3a6f52d85f4c04fd09902720b0d019 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 21 Sep 2008 11:12:32 +0000 Subject: [PATCH] whitespace fixes --- content/bookmarks.js | 2 +- content/commands.js | 1 - content/completion.js | 2 +- content/io.js | 1 - content/liberator.js | 1 - content/mail.js | 1 - content/muttator.js | 2 -- content/tabs.js | 4 ---- content/ui.js | 12 +++++------- 9 files changed, 7 insertions(+), 19 deletions(-) diff --git a/content/bookmarks.js b/content/bookmarks.js index 16b8e671..9a588249 100644 --- a/content/bookmarks.js +++ b/content/bookmarks.js @@ -320,7 +320,7 @@ liberator.Bookmarks = function () //{{{ // takes about 1 sec get: function (filter, tags, bypassCache) { - if(bypassCache) // Is this really necessary anymore? + if (bypassCache) // Is this really necessary anymore? cache.load(); return liberator.completion.filterURLArray(cache.bookmarks, filter, tags); }, diff --git a/content/commands.js b/content/commands.js index 9f84a65b..d67a6428 100644 --- a/content/commands.js +++ b/content/commands.js @@ -182,7 +182,6 @@ liberator.Commands = function () //{{{ COUNT_NONE: -1, COUNT_ALL: -2, // :%... - __iterator__: function () { var sorted = exCommands.sort(function (cmd1, cmd2) { return cmd1.name > cmd2.name; }); diff --git a/content/completion.js b/content/completion.js index 884c6472..d12f6c9c 100644 --- a/content/completion.js +++ b/content/completion.js @@ -189,7 +189,7 @@ liberator.Completion = function () //{{{ (i + 1).toString().indexOf(filter) == -1) continue; - if (title.indexOf(filter) != -1 || url.indexOf(filter) != -1 || + if (title.indexOf(filter) != -1 || url.indexOf(filter) != -1 || (i + 1).toString().indexOf(filter) != -1) { if (title == "") diff --git a/content/io.js b/content/io.js index 8868575a..9b00cca9 100644 --- a/content/io.js +++ b/content/io.js @@ -68,7 +68,6 @@ liberator.IO = function () //{{{ } }); - var shell, shellcmdflag; if (WINDOWS) diff --git a/content/liberator.js b/content/liberator.js index 290d4cd1..2072e80b 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -1012,7 +1012,6 @@ const liberator = (function () //{{{ .quit(nsIAppStartup.eRestart | nsIAppStartup.eAttemptQuit); }, - // TODO: move to {muttator,vimperator,...}.js // this function is called when the chrome is ready startup: function () diff --git a/content/mail.js b/content/mail.js index 497b23b2..17e065aa 100644 --- a/content/mail.js +++ b/content/mail.js @@ -330,7 +330,6 @@ liberator.Mail = function () //{{{ }, { flags: liberator.Mappings.flags.COUNT }); - // SENDING MESSAGES liberator.mappings.add(modes, ["m"], "Compose a new message", diff --git a/content/muttator.js b/content/muttator.js index fd9db88d..b9db5ce0 100644 --- a/content/muttator.js +++ b/content/muttator.js @@ -119,7 +119,6 @@ liberator.config = { //{{{ "Edit message with external editor by default", "boolean", false); - // load Muttator specific modules if (this.isComposeWindow) { @@ -184,7 +183,6 @@ liberator.config = { //{{{ NotifyDocumentWillBeDestroyed: function () {} }; - // XXX: Hack! window.document.addEventListener("load", function () { diff --git a/content/tabs.js b/content/tabs.js index aa90ff56..944ba531 100644 --- a/content/tabs.js +++ b/content/tabs.js @@ -153,7 +153,6 @@ liberator.Tabs = function () //{{{ }, }); - if (liberator.config.name == "Vimperator") { liberator.options.add(["activate", "act"], @@ -249,7 +248,6 @@ liberator.Tabs = function () //{{{ function (count) { liberator.tabs.select("-" + (count < 1 ? 1 : count), true); }, { flags: liberator.Mappings.flags.COUNT }); - if (liberator.config.name == "Vimperator") { liberator.mappings.add([liberator.modes.NORMAL], ["b"], @@ -433,7 +431,6 @@ liberator.Tabs = function () //{{{ }, { argCount: "0" }); - if (liberator.config.name == "Vimperator") { // TODO: "Zero count" if 0 specified as arg, multiple args and count ranges? @@ -526,7 +523,6 @@ liberator.Tabs = function () //{{{ }, { completer: function (filter) { return liberator.completion.url(filter); } }); - liberator.commands.add(["tabde[tach]"], "Detach current tab to its own window", function (args, special, count) diff --git a/content/ui.js b/content/ui.js index 42b904fa..d33b9ba4 100644 --- a/content/ui.js +++ b/content/ui.js @@ -1139,8 +1139,7 @@ liberator.ItemList = function (id) //{{{ const ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); } - catch (e) { } // for muttator! - + catch (e) {} // for muttator! // TODO: temporary, to be changed/removed function createRow(a, b, c) @@ -1195,7 +1194,7 @@ liberator.ItemList = function (id) //{{{ var height = getHeight(); if (height == 0) // sometimes we don't have the correct size at this point - setTimeout(function() { container.height = getHeight(); }, 10); + setTimeout(function () { container.height = getHeight(); }, 10); else container.height = height; } @@ -1220,7 +1219,7 @@ liberator.ItemList = function (id) //{{{ var uri = ioService.newURI(completions[offset][0], null, null); icon = faviconService.getFaviconImageForPage(uri).spec; } - catch (e) { } + catch (e) {} var row = createRow(icon, completions[offset + maxItems - 1][0], completions[offset + maxItems - 1][1]); var e = doc.getElementsByTagName("tbody"); @@ -1238,7 +1237,7 @@ liberator.ItemList = function (id) //{{{ var uri = ioService.newURI(completions[offset][0], null, null); icon = faviconService.getFaviconImageForPage(uri).spec; } - catch (e) { } + catch (e) {} var row = createRow(icon, completions[offset][0], completions[offset][1]); var e = doc.getElementsByTagName("tbody"); e[e.length - 1].removeChild(e[e.length - 1].lastElementChild); @@ -1273,7 +1272,7 @@ liberator.ItemList = function (id) //{{{ icon = faviconService.getFaviconImageForPage(uri).spec; //dump(icon + "\n"); } - catch (e) { } + catch (e) {} if (i == -132434) { @@ -1370,7 +1369,6 @@ liberator.ItemList = function (id) //{{{ //}}} }; //}}} - liberator.StatusLine = function () //{{{ { ////////////////////////////////////////////////////////////////////////////////