feat(view): add support for components that use shadow dom emulation

This commit is contained in:
vsavkin
2014-12-23 10:45:20 -08:00
parent df4ac0dd33
commit da9d041f90
27 changed files with 188 additions and 89 deletions

View File

@ -47,6 +47,9 @@ class DOM {
static List<Node> childNodes(el) {
return el.childNodes;
}
static clearNodes(el) {
el.nodes = [];
}
static appendChild(el, node) {
el.append(node);
}

View File

@ -40,6 +40,9 @@ export class DOM {
static childNodes(el):NodeList {
return el.childNodes;
}
static clearNodes(el) {
el.innerHTML = "";
}
static appendChild(el, node) {
el.appendChild(node);
}