parent
a205807191
commit
5f0a0fd8d2
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user