Reverted to the old removeChildren implementation.
This commit is contained in:
parent
604771aac3
commit
eb72573121
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ const $appendChildren = function(element, ...children) {
|
||||||
};
|
};
|
||||||
|
|
||||||
const $removeChildren = function(element) {
|
const $removeChildren = function(element) {
|
||||||
while(element.firstChild)
|
while(element.lastChild)
|
||||||
element.firstChild.remove();
|
element.removeChild(element.lastChild);
|
||||||
};
|
};
|
||||||
|
|
||||||
const $fragment = function(props, ...children) {
|
const $fragment = function(props, ...children) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue