Reverted to the old removeChildren implementation.

This commit is contained in:
flash 2025-02-20 18:09:17 +00:00
parent 604771aac3
commit eb72573121

View file

@ -44,8 +44,8 @@ const $appendChildren = function(element, ...children) {
};
const $removeChildren = function(element) {
while(element.firstChild)
element.firstChild.remove();
while(element.lastChild)
element.removeChild(element.lastChild);
};
const $fragment = function(props, ...children) {