Adjusted fragment creation.

This commit is contained in:
flash 2025-02-20 18:21:36 +00:00
parent eb72573121
commit 55fca7b945

View file

@ -49,7 +49,7 @@ const $removeChildren = function(element) {
};
const $fragment = function(props, ...children) {
const fragment = new DocumentFragment(props);
const fragment = document.createDocumentFragment();
$appendChildren(fragment, ...children);
return fragment;
};