mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
js: Prefix jQuery object variable names with $.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user