Skip to content

Commit cf8a5d2

Browse files
committed
cleanup(zones): cleanup
1 parent 9891312 commit cf8a5d2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

modules/core/src/application.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export function bootstrap(appComponentType: Type, bindings=null) {
9191
if (isPresent(bindings)) appInjector = appInjector.createChild(bindings);
9292

9393
return appInjector.asyncGet(LifeCycle).
94-
then((lc) => lc.registerWith(zone)).
94+
then((lc) => {
95+
lc.registerWith(zone);
96+
lc.tick();
97+
}).
9598
then((_) => appInjector);
9699
});
97100
}

modules/core/src/life_cycle/life_cycle.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export class LifeCycle {
1313
zone.initCallbacks({
1414
onTurnDone: () => this.tick()
1515
});
16-
this.tick();
1716
}
1817

1918
tick() {

modules/facade/src/async.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ class _Completer {
3232

3333
get promise => c.future;
3434
get complete => c.complete;
35-
35+
get reject => c.completeError;
3636
}

0 commit comments

Comments
 (0)