mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
typeahead: Use const instead of let when not reassigned.
This commit is contained in:
@@ -284,8 +284,6 @@ import {get_string_diff} from "../../src/util";
|
||||
},
|
||||
|
||||
lookup(hideOnEmpty) {
|
||||
let items;
|
||||
|
||||
this.query = this.$element.is("[contenteditable]")
|
||||
? this.$element.text()
|
||||
: this.$element.val();
|
||||
@@ -297,7 +295,7 @@ import {get_string_diff} from "../../src/util";
|
||||
return this.shown ? this.hide() : this;
|
||||
}
|
||||
|
||||
items =
|
||||
const items =
|
||||
typeof this.source === "function"
|
||||
? this.source(this.query, this.process.bind(this))
|
||||
: this.source;
|
||||
|
||||
Reference in New Issue
Block a user