fix(browser_adapter): fix clearNodes() in IE

Fixes #3295

Closes #3355
This commit is contained in:
Pawel Kozlowski 2015-07-29 16:02:14 +02:00
parent 0a40024995
commit 70bc485755
1 changed files with 2 additions and 2 deletions

View File

@ -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); }