mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
parent
a205807191
commit
5f0a0fd8d2
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue