refactor(view): code simplification

This commit is contained in:
Victor Berchet 2015-01-09 16:09:47 +01:00
parent 8e494396d9
commit 41907853b4
1 changed files with 1 additions and 4 deletions

View File

@ -156,13 +156,10 @@ export class View {
elementInjector.instantiateDirectives(appInjector, shadowDomAppInjector, this.preBuiltObjects[i]);
}
// componentChildViews
if (isPresent(shadowDomAppInjector)) {
if (isPresent(componentDirective)) {
this.componentChildViews[componentChildViewIndex++].hydrate(shadowDomAppInjector,
elementInjector, elementInjector.getComponent());
}
if (isPresent(componentDirective)) {
var lightDom = this.preBuiltObjects[i].lightDom;
if (isPresent(lightDom)) lightDom.redistribute();
}