mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 01:57:58 +01:00
Replace expression closures (function expressions).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user