typeahead: Use const instead of let when not reassigned.

This commit is contained in:
evykassirer
2024-03-01 14:37:08 -08:00
committed by Tim Abbott
parent 0a321f5e16
commit e12543f957

View File

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