mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
eslint: Enable prefer-arrow-callback.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
960174408f
commit
a79322bc94
@@ -117,14 +117,14 @@ function scroll_finish() {
|
||||
scroll_timer = setTimeout(floating_recipient_bar.update, 100);
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$(() => {
|
||||
$.fn.safeOuterHeight = function (...args) {
|
||||
return this.outerHeight(...args) || 0;
|
||||
};
|
||||
$.fn.safeOuterWidth = function (...args) {
|
||||
return this.outerWidth(...args) || 0;
|
||||
};
|
||||
$('.app').scroll(_.throttle(function () {
|
||||
$('.app').scroll(_.throttle(() => {
|
||||
scroll_finish();
|
||||
}, 50));
|
||||
exports.initialize();
|
||||
|
||||
Reference in New Issue
Block a user