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:
Anders Kaseorg
2019-11-01 16:06:25 -07:00
committed by Tim Abbott
parent f7245e9ec6
commit 28f3dfa284
279 changed files with 6102 additions and 6102 deletions

View File

@@ -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);