Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Remove unneeded eventSupported.
evykassirerd5d505a56143
diff --git a/web/src/bootstrap_typeahead.js b/web/src/bootstrap_typeahead.jsindex d5212d385bc..26ba25cbacb 100644--- a/web/src/bootstrap_typeahead.js+++ b/web/src/bootstrap_typeahead.js@@ -410,11 +410,8 @@ Typeahead.prototype = {.on("blur", this.blur.bind(this)).on("keypress", this.keypress.bind(this)).on("keyup", this.keyup.bind(this))- .on("click", this.element_click.bind(this));-- if (this.eventSupported("keydown")) {- this.$element.on("keydown", this.keydown.bind(this));- }+ .on("click", this.element_click.bind(this))+ .on("keydown", this.keydown.bind(this));this.$menu.on("click", "li", this.click.bind(this))@@ -433,15 +430,6 @@ Typeahead.prototype = {this.$element.removeData("typeahead");},- eventSupported(eventName) {- let isSupported = eventName in this.$element;- if (!isSupported) {- this.$element.setAttribute(eventName, "return;");- isSupported = typeof this.$element[eventName] === "function";- }- return isSupported;- },-resizeHandler() {if (this.shown) {this.show();