1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 07:48:02 +01:00

whitespace fixes

This commit is contained in:
Doug Kearns
2008-09-21 11:12:32 +00:00
parent a0a2ba3f24
commit 0d35d7c67d
9 changed files with 7 additions and 19 deletions

View File

@@ -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);
},

View File

@@ -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; });

View File

@@ -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 == "")

View File

@@ -68,7 +68,6 @@ liberator.IO = function () //{{{
}
});
var shell, shellcmdflag;
if (WINDOWS)

View File

@@ -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 ()

View File

@@ -330,7 +330,6 @@ liberator.Mail = function () //{{{
},
{ flags: liberator.Mappings.flags.COUNT });
// SENDING MESSAGES
liberator.mappings.add(modes, ["m"],
"Compose a new message",

View File

@@ -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 ()
{

View File

@@ -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)

View File

@@ -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 () //{{{
{
////////////////////////////////////////////////////////////////////////////////