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