cleanup(zones): cleanup

This commit is contained in:
vsavkin 2014-12-12 15:18:48 -08:00
parent 9891312495
commit cf8a5d2a0d
3 changed files with 5 additions and 3 deletions

View File

@ -91,7 +91,10 @@ export function bootstrap(appComponentType: Type, bindings=null) {
if (isPresent(bindings)) appInjector = appInjector.createChild(bindings);
return appInjector.asyncGet(LifeCycle).
then((lc) => lc.registerWith(zone)).
then((lc) => {
lc.registerWith(zone);
lc.tick();
}).
then((_) => appInjector);
});
}

View File

@ -13,7 +13,6 @@ export class LifeCycle {
zone.initCallbacks({
onTurnDone: () => this.tick()
});
this.tick();
}
tick() {

View File

@ -32,5 +32,5 @@ class _Completer {
get promise => c.future;
get complete => c.complete;
get reject => c.completeError;
}