Remove redundant call to removeChild.

appendChild already takes elements out of the old parent.
This commit is contained in:
voussoir 2020-08-30 17:53:46 -07:00
parent 90873c648b
commit c8ab3c22c9

View file

@ -217,7 +217,7 @@ function ingest_toolbox_items()
var box = moreboxes[i]; var box = moreboxes[i];
while (box.firstElementChild) while (box.firstElementChild)
{ {
toolbox.appendChild(box.removeChild(box.firstElementChild)); toolbox.appendChild(box.firstElementChild);
} }
box.parentElement.removeChild(box); box.parentElement.removeChild(box);
} }