js: Skip redundant jQuery object reconstruction.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-08-18 11:49:42 -07:00
committed by Tim Abbott
parent 33c790e2fc
commit b0dba411d9
15 changed files with 35 additions and 33 deletions

View File

@@ -493,8 +493,8 @@ export function initialize() {
const $invite_row = $(event.target).parents(".compose_invite_user");
const user_id = Number.parseInt($($invite_row).data("user-id"), 10);
const stream_id = Number.parseInt($($invite_row).data("stream-id"), 10);
const user_id = Number.parseInt($invite_row.data("user-id"), 10);
const stream_id = Number.parseInt($invite_row.data("stream-id"), 10);
function success() {
const $all_invites = $("#compose_invite_users");