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

trivial formatting improvements

This commit is contained in:
Doug Kearns
2008-10-05 09:55:56 +00:00
parent d89df7c4e1
commit 86adfc396a
5 changed files with 17 additions and 17 deletions

View File

@@ -603,7 +603,7 @@ liberator.Events = function () //{{{
return; return;
let name = file.leafName.replace(/\.vimp$/i, ""); 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); liberator.log("Macro " + name + " added: " + macros.get(name), 5);
}); });
@@ -720,7 +720,7 @@ liberator.Events = function () //{{{
// removeEventListeners() to avoid mem leaks // removeEventListeners() to avoid mem leaks
liberator.dump("TODO: remove all eventlisteners\n"); liberator.dump("TODO: remove all eventlisteners\n");
if (typeof(getBrowser) != "undefined") if (typeof getBrowser != "undefined")
getBrowser().removeProgressListener(this.progressListener); getBrowser().removeProgressListener(this.progressListener);
window.removeEventListener("popupshown", enterPopupMode, true); window.removeEventListener("popupshown", enterPopupMode, true);

View File

@@ -93,23 +93,17 @@ liberator.IO = function () //{{{
liberator.options.add(["cdpath", "cd"], liberator.options.add(["cdpath", "cd"],
"List of directories searched when executing :cd", "List of directories searched when executing :cd",
"stringlist", cdpath, "stringlist", cdpath,
{ { setter: function (value) expandPathList(value) });
setter: function (value) expandPathList(value)
});
liberator.options.add(["runtimepath", "rtp"], liberator.options.add(["runtimepath", "rtp"],
"List of directories searched for runtime files", "List of directories searched for runtime files",
"stringlist", runtimepath, "stringlist", runtimepath,
{ { setter: function (value) expandPathList(value) });
setter: function (value) expandPathList(value)
});
liberator.options.add(["shell", "sh"], liberator.options.add(["shell", "sh"],
"Shell to use for executing :! and :run commands", "Shell to use for executing :! and :run commands",
"string", shell, "string", shell,
{ { setter: function (value) liberator.io.expandPath(value) });
setter: function (value) liberator.io.expandPath(value)
});
liberator.options.add(["shellcmdflag", "shcf"], liberator.options.add(["shellcmdflag", "shcf"],
"Flag passed to shell when executing :! and :run commands", "Flag passed to shell when executing :! and :run commands",

View File

@@ -344,7 +344,10 @@ liberator.Mail = function () //{{{
var to = escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); var to = escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor);
liberator.commandline.open(":", "message " + to + " -subject=", liberator.modes.EX); liberator.commandline.open(":", "message " + to + " -subject=", liberator.modes.EX);
} }
catch (e) { liberator.beep(); } catch (e)
{
liberator.beep();
}
}); });
liberator.mappings.add(modes, ["r"], liberator.mappings.add(modes, ["r"],
@@ -650,7 +653,10 @@ liberator.Mail = function () //{{{
messenger.launchExternalURL(getRSSUrl()); messenger.launchExternalURL(getRSSUrl());
// TODO: what to do for non-rss message? // 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, 0, 0], // HTML
[false, 3, gDisallow_classes_no_html]]; // sanitized/simple 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; value = 1;
gPrefBranch.setBoolPref("mailnews.display.prefer_plaintext", values[value][0]); gPrefBranch.setBoolPref("mailnews.display.prefer_plaintext", values[value][0]);

View File

@@ -182,7 +182,7 @@ liberator.config = { //{{{
// XXX: Hack! // XXX: Hack!
window.document.addEventListener("load", function () window.document.addEventListener("load", function ()
{ {
if (typeof(window.messageWasEditedExternally) == "undefined") if (typeof window.messageWasEditedExternally == "undefined")
{ {
window.messageWasEditedExternally = false; window.messageWasEditedExternally = false;
GetCurrentEditor().addDocumentStateListener(stateListener); GetCurrentEditor().addDocumentStateListener(stateListener);

View File

@@ -768,7 +768,7 @@ liberator.CommandLine = function () //{{{
historyIndex = UNINITIALIZED; historyIndex = UNINITIALIZED;
// TODO: call just once, and not on each <Tab> // 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 hasList = false;
var longest = false; var longest = false;
var full = false; var full = false;
@@ -1333,7 +1333,7 @@ liberator.ItemList = function (id) //{{{
doc = iframe.contentDocument; doc = iframe.contentDocument;
listOffset = listIndex = -1; listOffset = listIndex = -1;
completions = items || []; completions = items || [];
if (typeof(selectedItem) == "number") if (typeof selectedItem == "number")
{ {
this.selectItem(selectedItem); this.selectItem(selectedItem);
this.show(); this.show();