mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
trivial formatting improvements
This commit is contained in:
@@ -603,7 +603,7 @@ liberator.Events = function () //{{{
|
||||
return;
|
||||
|
||||
let name = file.leafName.replace(/\.vimp$/i, "");
|
||||
macros.set(name, liberator.io.readFile(file).split(/\n/)[0]);
|
||||
macros.set(name, liberator.io.readFile(file).split("\n")[0]);
|
||||
|
||||
liberator.log("Macro " + name + " added: " + macros.get(name), 5);
|
||||
});
|
||||
@@ -720,7 +720,7 @@ liberator.Events = function () //{{{
|
||||
// removeEventListeners() to avoid mem leaks
|
||||
liberator.dump("TODO: remove all eventlisteners\n");
|
||||
|
||||
if (typeof(getBrowser) != "undefined")
|
||||
if (typeof getBrowser != "undefined")
|
||||
getBrowser().removeProgressListener(this.progressListener);
|
||||
|
||||
window.removeEventListener("popupshown", enterPopupMode, true);
|
||||
|
||||
@@ -93,23 +93,17 @@ liberator.IO = function () //{{{
|
||||
liberator.options.add(["cdpath", "cd"],
|
||||
"List of directories searched when executing :cd",
|
||||
"stringlist", cdpath,
|
||||
{
|
||||
setter: function (value) expandPathList(value)
|
||||
});
|
||||
{ setter: function (value) expandPathList(value) });
|
||||
|
||||
liberator.options.add(["runtimepath", "rtp"],
|
||||
"List of directories searched for runtime files",
|
||||
"stringlist", runtimepath,
|
||||
{
|
||||
setter: function (value) expandPathList(value)
|
||||
});
|
||||
{ setter: function (value) expandPathList(value) });
|
||||
|
||||
liberator.options.add(["shell", "sh"],
|
||||
"Shell to use for executing :! and :run commands",
|
||||
"string", shell,
|
||||
{
|
||||
setter: function (value) liberator.io.expandPath(value)
|
||||
});
|
||||
{ setter: function (value) liberator.io.expandPath(value) });
|
||||
|
||||
liberator.options.add(["shellcmdflag", "shcf"],
|
||||
"Flag passed to shell when executing :! and :run commands",
|
||||
|
||||
@@ -344,7 +344,10 @@ liberator.Mail = function () //{{{
|
||||
var to = escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor);
|
||||
liberator.commandline.open(":", "message " + to + " -subject=", liberator.modes.EX);
|
||||
}
|
||||
catch (e) { liberator.beep(); }
|
||||
catch (e)
|
||||
{
|
||||
liberator.beep();
|
||||
}
|
||||
});
|
||||
|
||||
liberator.mappings.add(modes, ["r"],
|
||||
@@ -650,7 +653,10 @@ liberator.Mail = function () //{{{
|
||||
messenger.launchExternalURL(getRSSUrl());
|
||||
// TODO: what to do for non-rss message?
|
||||
}
|
||||
catch (e) { liberator.beep(); }
|
||||
catch (e)
|
||||
{
|
||||
liberator.beep();
|
||||
}
|
||||
});
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
@@ -1031,7 +1037,7 @@ liberator.Mail = function () //{{{
|
||||
[false, 0, 0], // HTML
|
||||
[false, 3, gDisallow_classes_no_html]]; // sanitized/simple HTML
|
||||
|
||||
if (typeof(value) != "number" || value < 0 || value > 2)
|
||||
if (typeof value != "number" || value < 0 || value > 2)
|
||||
value = 1;
|
||||
|
||||
gPrefBranch.setBoolPref("mailnews.display.prefer_plaintext", values[value][0]);
|
||||
|
||||
@@ -182,7 +182,7 @@ liberator.config = { //{{{
|
||||
// XXX: Hack!
|
||||
window.document.addEventListener("load", function ()
|
||||
{
|
||||
if (typeof(window.messageWasEditedExternally) == "undefined")
|
||||
if (typeof window.messageWasEditedExternally == "undefined")
|
||||
{
|
||||
window.messageWasEditedExternally = false;
|
||||
GetCurrentEditor().addDocumentStateListener(stateListener);
|
||||
|
||||
@@ -768,7 +768,7 @@ liberator.CommandLine = function () //{{{
|
||||
historyIndex = UNINITIALIZED;
|
||||
|
||||
// TODO: call just once, and not on each <Tab>
|
||||
var wim = liberator.options["wildmode"].split(/,/);
|
||||
var wim = liberator.options["wildmode"].split(",");
|
||||
var hasList = false;
|
||||
var longest = false;
|
||||
var full = false;
|
||||
@@ -1333,7 +1333,7 @@ liberator.ItemList = function (id) //{{{
|
||||
doc = iframe.contentDocument;
|
||||
listOffset = listIndex = -1;
|
||||
completions = items || [];
|
||||
if (typeof(selectedItem) == "number")
|
||||
if (typeof selectedItem == "number")
|
||||
{
|
||||
this.selectItem(selectedItem);
|
||||
this.show();
|
||||
|
||||
Reference in New Issue
Block a user