mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
js: Automatically convert var to let and const in most files.
This commit was originally automatically generated using `tools/lint --only=eslint --fix`. It was then modified by tabbott to contain only changes to a set of files that are unlikely to result in significant merge conflicts with any open pull request, excluding about 20 files. His plan is to merge the remaining changes with more precise care, potentially involving merging parts of conflicting pull requests before running the `eslint --fix` operation. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
f7245e9ec6
commit
28f3dfa284
@@ -1,6 +1,6 @@
|
||||
var actively_scrolling = false;
|
||||
let actively_scrolling = false;
|
||||
|
||||
var loading_more_messages_indicator_showing = false;
|
||||
let loading_more_messages_indicator_showing = false;
|
||||
exports.show_loading_older = function () {
|
||||
if (!loading_more_messages_indicator_showing) {
|
||||
loading.make_indicator($('#loading_more_messages_indicator'),
|
||||
@@ -61,7 +61,7 @@ exports.scroll_finished = function () {
|
||||
setTimeout(unread_ops.process_visible, 0);
|
||||
};
|
||||
|
||||
var scroll_timer;
|
||||
let scroll_timer;
|
||||
function scroll_finish() {
|
||||
actively_scrolling = true;
|
||||
clearTimeout(scroll_timer);
|
||||
|
||||
Reference in New Issue
Block a user