js: Prefix jQuery object variable names with $.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-01-25 02:36:19 -08:00
parent f21842e920
commit f84a2c08d5
195 changed files with 4883 additions and 4835 deletions

View File

@@ -14,7 +14,7 @@ export function random_id() {
}
export function create(opts) {
if (!opts.container) {
if (!opts.$container) {
blueslip.error("Pill needs container.");
return undefined;
}
@@ -34,8 +34,8 @@ export function create(opts) {
const store = {
pills: [],
pill_config: opts.pill_config,
$parent: opts.container,
$input: opts.container.find(".input").expectOne(),
$parent: opts.$container,
$input: opts.$container.find(".input").expectOne(),
create_item_from_text: opts.create_item_from_text,
get_text_from_item: opts.get_text_from_item,
};