mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 05:37:58 +01:00
whitespace fixes
This commit is contained in:
@@ -320,7 +320,7 @@ liberator.Bookmarks = function () //{{{
|
|||||||
// takes about 1 sec
|
// takes about 1 sec
|
||||||
get: function (filter, tags, bypassCache)
|
get: function (filter, tags, bypassCache)
|
||||||
{
|
{
|
||||||
if(bypassCache) // Is this really necessary anymore?
|
if (bypassCache) // Is this really necessary anymore?
|
||||||
cache.load();
|
cache.load();
|
||||||
return liberator.completion.filterURLArray(cache.bookmarks, filter, tags);
|
return liberator.completion.filterURLArray(cache.bookmarks, filter, tags);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -182,7 +182,6 @@ liberator.Commands = function () //{{{
|
|||||||
COUNT_NONE: -1,
|
COUNT_NONE: -1,
|
||||||
COUNT_ALL: -2, // :%...
|
COUNT_ALL: -2, // :%...
|
||||||
|
|
||||||
|
|
||||||
__iterator__: function ()
|
__iterator__: function ()
|
||||||
{
|
{
|
||||||
var sorted = exCommands.sort(function (cmd1, cmd2) { return cmd1.name > cmd2.name; });
|
var sorted = exCommands.sort(function (cmd1, cmd2) { return cmd1.name > cmd2.name; });
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ liberator.Completion = function () //{{{
|
|||||||
(i + 1).toString().indexOf(filter) == -1)
|
(i + 1).toString().indexOf(filter) == -1)
|
||||||
continue;
|
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)
|
(i + 1).toString().indexOf(filter) != -1)
|
||||||
{
|
{
|
||||||
if (title == "")
|
if (title == "")
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ liberator.IO = function () //{{{
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
var shell, shellcmdflag;
|
var shell, shellcmdflag;
|
||||||
|
|
||||||
if (WINDOWS)
|
if (WINDOWS)
|
||||||
|
|||||||
@@ -1012,7 +1012,6 @@ const liberator = (function () //{{{
|
|||||||
.quit(nsIAppStartup.eRestart | nsIAppStartup.eAttemptQuit);
|
.quit(nsIAppStartup.eRestart | nsIAppStartup.eAttemptQuit);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// TODO: move to {muttator,vimperator,...}.js
|
// TODO: move to {muttator,vimperator,...}.js
|
||||||
// this function is called when the chrome is ready
|
// this function is called when the chrome is ready
|
||||||
startup: function ()
|
startup: function ()
|
||||||
|
|||||||
@@ -330,7 +330,6 @@ liberator.Mail = function () //{{{
|
|||||||
},
|
},
|
||||||
{ flags: liberator.Mappings.flags.COUNT });
|
{ flags: liberator.Mappings.flags.COUNT });
|
||||||
|
|
||||||
|
|
||||||
// SENDING MESSAGES
|
// SENDING MESSAGES
|
||||||
liberator.mappings.add(modes, ["m"],
|
liberator.mappings.add(modes, ["m"],
|
||||||
"Compose a new message",
|
"Compose a new message",
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ liberator.config = { //{{{
|
|||||||
"Edit message with external editor by default",
|
"Edit message with external editor by default",
|
||||||
"boolean", false);
|
"boolean", false);
|
||||||
|
|
||||||
|
|
||||||
// load Muttator specific modules
|
// load Muttator specific modules
|
||||||
if (this.isComposeWindow)
|
if (this.isComposeWindow)
|
||||||
{
|
{
|
||||||
@@ -184,7 +183,6 @@ liberator.config = { //{{{
|
|||||||
NotifyDocumentWillBeDestroyed: function () {}
|
NotifyDocumentWillBeDestroyed: function () {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// XXX: Hack!
|
// XXX: Hack!
|
||||||
window.document.addEventListener("load", function ()
|
window.document.addEventListener("load", function ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -153,7 +153,6 @@ liberator.Tabs = function () //{{{
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
if (liberator.config.name == "Vimperator")
|
if (liberator.config.name == "Vimperator")
|
||||||
{
|
{
|
||||||
liberator.options.add(["activate", "act"],
|
liberator.options.add(["activate", "act"],
|
||||||
@@ -249,7 +248,6 @@ liberator.Tabs = function () //{{{
|
|||||||
function (count) { liberator.tabs.select("-" + (count < 1 ? 1 : count), true); },
|
function (count) { liberator.tabs.select("-" + (count < 1 ? 1 : count), true); },
|
||||||
{ flags: liberator.Mappings.flags.COUNT });
|
{ flags: liberator.Mappings.flags.COUNT });
|
||||||
|
|
||||||
|
|
||||||
if (liberator.config.name == "Vimperator")
|
if (liberator.config.name == "Vimperator")
|
||||||
{
|
{
|
||||||
liberator.mappings.add([liberator.modes.NORMAL], ["b"],
|
liberator.mappings.add([liberator.modes.NORMAL], ["b"],
|
||||||
@@ -433,7 +431,6 @@ liberator.Tabs = function () //{{{
|
|||||||
},
|
},
|
||||||
{ argCount: "0" });
|
{ argCount: "0" });
|
||||||
|
|
||||||
|
|
||||||
if (liberator.config.name == "Vimperator")
|
if (liberator.config.name == "Vimperator")
|
||||||
{
|
{
|
||||||
// TODO: "Zero count" if 0 specified as arg, multiple args and count ranges?
|
// 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); } });
|
{ completer: function (filter) { return liberator.completion.url(filter); } });
|
||||||
|
|
||||||
|
|
||||||
liberator.commands.add(["tabde[tach]"],
|
liberator.commands.add(["tabde[tach]"],
|
||||||
"Detach current tab to its own window",
|
"Detach current tab to its own window",
|
||||||
function (args, special, count)
|
function (args, special, count)
|
||||||
|
|||||||
@@ -1139,8 +1139,7 @@ liberator.ItemList = function (id) //{{{
|
|||||||
const ioService = Components.classes["@mozilla.org/network/io-service;1"]
|
const ioService = Components.classes["@mozilla.org/network/io-service;1"]
|
||||||
.getService(Components.interfaces.nsIIOService);
|
.getService(Components.interfaces.nsIIOService);
|
||||||
}
|
}
|
||||||
catch (e) { } // for muttator!
|
catch (e) {} // for muttator!
|
||||||
|
|
||||||
|
|
||||||
// TODO: temporary, to be changed/removed
|
// TODO: temporary, to be changed/removed
|
||||||
function createRow(a, b, c)
|
function createRow(a, b, c)
|
||||||
@@ -1195,7 +1194,7 @@ liberator.ItemList = function (id) //{{{
|
|||||||
|
|
||||||
var height = getHeight();
|
var height = getHeight();
|
||||||
if (height == 0) // sometimes we don't have the correct size at this point
|
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
|
else
|
||||||
container.height = height;
|
container.height = height;
|
||||||
}
|
}
|
||||||
@@ -1220,7 +1219,7 @@ liberator.ItemList = function (id) //{{{
|
|||||||
var uri = ioService.newURI(completions[offset][0], null, null);
|
var uri = ioService.newURI(completions[offset][0], null, null);
|
||||||
icon = faviconService.getFaviconImageForPage(uri).spec;
|
icon = faviconService.getFaviconImageForPage(uri).spec;
|
||||||
}
|
}
|
||||||
catch (e) { }
|
catch (e) {}
|
||||||
|
|
||||||
var row = createRow(icon, completions[offset + maxItems - 1][0], completions[offset + maxItems - 1][1]);
|
var row = createRow(icon, completions[offset + maxItems - 1][0], completions[offset + maxItems - 1][1]);
|
||||||
var e = doc.getElementsByTagName("tbody");
|
var e = doc.getElementsByTagName("tbody");
|
||||||
@@ -1238,7 +1237,7 @@ liberator.ItemList = function (id) //{{{
|
|||||||
var uri = ioService.newURI(completions[offset][0], null, null);
|
var uri = ioService.newURI(completions[offset][0], null, null);
|
||||||
icon = faviconService.getFaviconImageForPage(uri).spec;
|
icon = faviconService.getFaviconImageForPage(uri).spec;
|
||||||
}
|
}
|
||||||
catch (e) { }
|
catch (e) {}
|
||||||
var row = createRow(icon, completions[offset][0], completions[offset][1]);
|
var row = createRow(icon, completions[offset][0], completions[offset][1]);
|
||||||
var e = doc.getElementsByTagName("tbody");
|
var e = doc.getElementsByTagName("tbody");
|
||||||
e[e.length - 1].removeChild(e[e.length - 1].lastElementChild);
|
e[e.length - 1].removeChild(e[e.length - 1].lastElementChild);
|
||||||
@@ -1273,7 +1272,7 @@ liberator.ItemList = function (id) //{{{
|
|||||||
icon = faviconService.getFaviconImageForPage(uri).spec;
|
icon = faviconService.getFaviconImageForPage(uri).spec;
|
||||||
//dump(icon + "\n");
|
//dump(icon + "\n");
|
||||||
}
|
}
|
||||||
catch (e) { }
|
catch (e) {}
|
||||||
|
|
||||||
if (i == -132434)
|
if (i == -132434)
|
||||||
{
|
{
|
||||||
@@ -1370,7 +1369,6 @@ liberator.ItemList = function (id) //{{{
|
|||||||
//}}}
|
//}}}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|
||||||
|
|
||||||
liberator.StatusLine = function () //{{{
|
liberator.StatusLine = function () //{{{
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user