Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typeahead: Rename e to event for legibility.

evykassirerdc4244b9d8e3
diff --git a/web/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.js
index 53264099577..94699cfd52c 100644
--- a/web/third/bootstrap-typeahead/typeahead.js
+++ b/web/third/bootstrap-typeahead/typeahead.js
@@ -137,13 +137,13 @@ import {insertTextIntoField} from "text-field-edit";
import {get_string_diff} from "../../src/util";
!(function ($) {
- function get_pseudo_keycode(e) {
- const isComposing = (e.originalEvent && e.originalEvent.isComposing) || false;
+ function get_pseudo_keycode(event) {
+ const isComposing = (event.originalEvent && event.originalEvent.isComposing) || false;
/* We treat IME compose enter keypresses as a separate -13 key. */
- if (e.keyCode === 13 && isComposing) {
+ if (event.keyCode === 13 && isComposing) {
return -13;
}
- return e.keyCode;
+ return event.keyCode;
}
/* TYPEAHEAD PUBLIC CLASS DEFINITION