eslint: Enable prefer-arrow-callback.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-01 16:45:54 -07:00
committed by Tim Abbott
parent 960174408f
commit a79322bc94
160 changed files with 873 additions and 1012 deletions

View File

@@ -71,7 +71,7 @@ function set_up_handlers() {
meta.handlers_set = true;
// if the user mouses over the notification, don't hide it.
meta.$container.mouseenter(function () {
meta.$container.mouseenter(() => {
if (!meta.opened) {
return;
}
@@ -80,7 +80,7 @@ function set_up_handlers() {
});
// once the user's mouse leaves the notification, restart the countdown.
meta.$container.mouseleave(function () {
meta.$container.mouseleave(() => {
if (!meta.opened) {
return;
}
@@ -91,11 +91,11 @@ function set_up_handlers() {
meta.hide_me_time = Math.max(meta.hide_me_time, new Date().getTime() + 2000);
});
meta.$container.on('click', '.exit-me', function () {
meta.$container.on('click', '.exit-me', () => {
animate.fadeOut();
});
meta.$container.on('click', '.feedback_undo', function () {
meta.$container.on('click', '.feedback_undo', () => {
if (meta.undo) {
meta.undo();
}