1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 21:14:11 +01:00

Replace expression closures (function expressions).

Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
Doug Kearns
2015-05-26 03:38:58 +10:00
parent 34bfc2f50f
commit ce82387cdd
35 changed files with 182 additions and 184 deletions

View File

@@ -26,14 +26,14 @@ var Compose = Module("compose", {
NotifyDocumentWillBeDestroyed: function () {}
};
events.listen(window.document, "load", function () {
events.listen(window.document, "load", () => {
if (window.messageWasEditedExternally === undefined) {
window.messageWasEditedExternally = false;
GetCurrentEditor().addDocumentStateListener(stateListener);
}
}, true);
events.listen(window, "compose-window-close", function () {
events.listen(window, "compose-window-close", () => {
window.messageWasEditedExternally = false;
}, true);
}

View File

@@ -75,29 +75,29 @@ var Config = Module("config", ConfigBase, {
dialogs: {
about: ["About Thunderbird",
function () { window.openAboutDialog(); }],
() => { window.openAboutDialog(); }],
addons: ["Manage Add-ons",
function () { window.openAddonsMgr(); }],
() => { window.openAddonsMgr(); }],
addressbook: ["Address book",
function () { window.toAddressBook(); }],
() => { window.toAddressBook(); }],
checkupdates: ["Check for updates",
function () { window.checkForUpdates(); }],
() => { window.checkForUpdates(); }],
console: ["JavaScript console",
function () { window.toJavaScriptConsole(); }],
() => { window.toJavaScriptConsole(); }],
dominspector: ["DOM Inspector",
function () { window.inspectDOMDocument(content.document); }],
() => { window.inspectDOMDocument(content.document); }],
downloads: ["Manage Downloads",
function () { window.toOpenWindowByType('Download:Manager', 'chrome://mozapps/content/downloads/downloads.xul', 'chrome,dialog=no,resizable'); }],
() => { window.toOpenWindowByType('Download:Manager', 'chrome://mozapps/content/downloads/downloads.xul', 'chrome,dialog=no,resizable'); }],
preferences: ["Show Thunderbird preferences dialog",
function () { window.openOptionsDialog(); }],
() => { window.openOptionsDialog(); }],
printsetup: ["Setup the page size and orientation before printing",
function () { window.PrintUtils.showPageSetup(); }],
() => { window.PrintUtils.showPageSetup(); }],
print: ["Show print dialog",
function () { window.PrintUtils.print(); }],
() => { window.PrintUtils.print(); }],
saveframe: ["Save frame to disk",
function () { window.saveFrameDocument(); }],
() => { window.saveFrameDocument(); }],
savepage: ["Save page to disk",
function () { window.saveDocument(window.content.document); }],
() => { window.saveDocument(window.content.document); }],
},
focusChange: function focusChange(win) {