parent
0a40024995
commit
70bc485755
|
@ -130,14 +130,14 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
|||
}
|
||||
clearNodes(el) {
|
||||
while (el.firstChild) {
|
||||
el.firstChild.remove();
|
||||
el.removeChild(el.firstChild);
|
||||
}
|
||||
}
|
||||
appendChild(el, node) { el.appendChild(node); }
|
||||
removeChild(el, node) { el.removeChild(node); }
|
||||
replaceChild(el: Node, newChild, oldChild) { el.replaceChild(newChild, oldChild); }
|
||||
remove(node): Node {
|
||||
node.remove();
|
||||
node.parentNode.removeChild(node);
|
||||
return node;
|
||||
}
|
||||
insertBefore(el, node) { el.parentNode.insertBefore(node, el); }
|
||||
|
|
Loading…
Reference in New Issue