js: Use .empty() instead of .html("").

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-08-17 15:30:47 -07:00
committed by Tim Abbott
parent de663184f3
commit e0b593f67e
15 changed files with 17 additions and 34 deletions

View File

@@ -177,7 +177,7 @@ export function clear_for_testing() {
export function render_lightbox_list_images(preview_source) {
if (!is_open) {
const images = Array.prototype.slice.call($(".focused_table .message_inline_image img"));
const $image_list = $("#lightbox_overlay .image-list").html("");
const $image_list = $("#lightbox_overlay .image-list").empty();
for (const img of images) {
const src = img.getAttribute("src");