From c8ab3c22c99713b6e17297f362f988221a6e9678 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 30 Aug 2020 17:53:46 -0700 Subject: [PATCH] Remove redundant call to removeChild. appendChild already takes elements out of the old parent. --- frontends/etiquette_flask/static/js/photo_clipboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/static/js/photo_clipboard.js b/frontends/etiquette_flask/static/js/photo_clipboard.js index e48caf0..5148b09 100644 --- a/frontends/etiquette_flask/static/js/photo_clipboard.js +++ b/frontends/etiquette_flask/static/js/photo_clipboard.js @@ -217,7 +217,7 @@ function ingest_toolbox_items() var box = moreboxes[i]; while (box.firstElementChild) { - toolbox.appendChild(box.removeChild(box.firstElementChild)); + toolbox.appendChild(box.firstElementChild); } box.parentElement.removeChild(box); }