mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +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) {
|
lookup(hideOnEmpty) {
|
||||||
let items;
|
|
||||||
|
|
||||||
this.query = this.$element.is("[contenteditable]")
|
this.query = this.$element.is("[contenteditable]")
|
||||||
? this.$element.text()
|
? this.$element.text()
|
||||||
: this.$element.val();
|
: this.$element.val();
|
||||||
@@ -297,7 +295,7 @@ import {get_string_diff} from "../../src/util";
|
|||||||
return this.shown ? this.hide() : this;
|
return this.shown ? this.hide() : this;
|
||||||
}
|
}
|
||||||
|
|
||||||
items =
|
const items =
|
||||||
typeof this.source === "function"
|
typeof this.source === "function"
|
||||||
? this.source(this.query, this.process.bind(this))
|
? this.source(this.query, this.process.bind(this))
|
||||||
: this.source;
|
: this.source;
|
||||||
|
|||||||
Reference in New Issue
Block a user