@@ -52,15 +52,13 @@ class NgZone {
5252 _mountZone = Zone .current;
5353
5454 if (enableLongStackTrace) {
55- _innerZone = Chain .capture (
56- () => _createInnerZone (Zone .current),
55+ _innerZone = Chain .capture (() => _createInnerZone (Zone .current),
5756 onError: _onErrorWithLongStackTrace);
5857 } else {
59- _innerZone = _createInnerZone (
60- Zone .current,
61- handleUncaughtError: (Zone self, ZoneDelegate parent, Zone zone, error, StackTrace trace) =>
62- _onErrorWithoutLongStackTrace (error, trace)
63- );
58+ _innerZone = _createInnerZone (Zone .current,
59+ handleUncaughtError: (Zone self, ZoneDelegate parent, Zone zone,
60+ error,
61+ StackTrace trace) => _onErrorWithoutLongStackTrace (error, trace));
6462 }
6563 }
6664
@@ -75,7 +73,8 @@ class NgZone {
7573 * @param {Function} onTurnDone called at the end of a VM turn if code has executed in the inner zone
7674 * @param {Function} onErrorHandler called when an exception is thrown by a macro or micro task
7775 */
78- void initCallbacks ({Function onTurnStart, Function onTurnDone, Function onErrorHandler}) {
76+ void initCallbacks (
77+ {Function onTurnStart, Function onTurnDone, Function onErrorHandler}) {
7978 _onTurnStart = onTurnStart;
8079 _onTurnDone = onTurnDone;
8180 _onErrorHandler = onErrorHandler;
@@ -158,10 +157,10 @@ class NgZone {
158157 }
159158
160159 dynamic _runUnary (Zone self, ZoneDelegate parent, Zone zone, fn (arg), arg) =>
161- _run (self, parent, zone, () => fn (arg));
160+ _run (self, parent, zone, () => fn (arg));
162161
163- dynamic _runBinary (Zone self, ZoneDelegate parent, Zone zone, fn (arg1, arg2), arg1, arg2) =>
164- _run (self, parent, zone, () => fn (arg1, arg2));
162+ dynamic _runBinary (Zone self, ZoneDelegate parent, Zone zone, fn (arg1, arg2),
163+ arg1, arg2) => _run (self, parent, zone, () => fn (arg1, arg2));
165164
166165 void _scheduleMicrotask (Zone self, ZoneDelegate parent, Zone zone, fn) {
167166 _pendingMicrotasks++ ;
@@ -196,14 +195,12 @@ class NgZone {
196195
197196 Zone _createInnerZone (Zone zone, {handleUncaughtError}) {
198197 return zone.fork (
199- specification: new ZoneSpecification (
200- scheduleMicrotask: _scheduleMicrotask,
201- run: _run,
202- runUnary: _runUnary,
203- runBinary: _runBinary,
204- handleUncaughtError: handleUncaughtError
205- ),
206- zoneValues: {'_innerZone' : true }
207- );
198+ specification: new ZoneSpecification (
199+ scheduleMicrotask: _scheduleMicrotask,
200+ run: _run,
201+ runUnary: _runUnary,
202+ runBinary: _runBinary,
203+ handleUncaughtError: handleUncaughtError),
204+ zoneValues: {'_innerZone' : true });
208205 }
209206}
0 commit comments