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
1 changed files with 3 additions and 3 deletions

View File

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