Replace expression closures (function expressions).

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

No files matched your search

+2 -2
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);
}