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
+1 -2
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) {
+1 -1
View File
@@ -14,7 +14,7 @@ export class Log {
}
fn(value) {
return () => {
return (a1 = null, a2 = null, a3 = null, a4 = null, a5 = null) => {
ListWrapper.push(this._result, value);
}
}