fix(view): changed view manager to hydrate change detector after creating directives

This commit is contained in:
vsavkin
2015-04-30 10:16:12 -07:00
parent f863ea0db5
commit c1579222bd
3 changed files with 27 additions and 4 deletions

View File

@ -185,7 +185,6 @@ export class AppViewManagerUtils {
}
view.context = context;
view.locals.parent = parentLocals;
view.changeDetector.hydrate(view.context, view.locals, view);
var binders = view.proto.elementBinders;
for (var i = 0; i < binders.length; ++i) {
@ -212,7 +211,7 @@ export class AppViewManagerUtils {
}
}
}
view.changeDetector.hydrate(view.context, view.locals, view);
}
_setUpEventEmitters(view:viewModule.AppView, elementInjector:eli.ElementInjector, boundElementIndex:number) {