fix(wtf): fix NgZone.run instrumentation

Closes #3788
This commit is contained in:
Victor Berchet 2015-08-21 20:34:50 -07:00
parent a205807191
commit 5f0a0fd8d2

View File

@ -139,14 +139,14 @@ export class NgZone {
*/ */
run(fn: () => any): any { run(fn: () => any): any {
if (this._disabled) { if (this._disabled) {
return fn();
} else {
var s = this._zone_run_scope(); var s = this._zone_run_scope();
try { try {
return fn(); return this._innerZone.run(fn);
} finally { } finally {
wtfLeave(s); wtfLeave(s);
} }
} else {
return this._innerZone.run(fn);
} }
} }