fix(compiler, view): centralize TemplateElement checks and fix inconsistencies

Fixes #189
Closes #194
This commit is contained in:
Tobias Bosch
2014-11-14 10:37:42 -08:00
parent 5e0ff2cbb7
commit 1b79c91320
6 changed files with 79 additions and 76 deletions

View File

@ -78,5 +78,7 @@ export class DOM {
}
return res;
}
static templateAwareRoot(el:Element):Node {
return el instanceof TemplateElement ? el.content : el;
}
}