Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit e6124dc

Browse files
committed
0.5.7
1 parent 79a37c0 commit e6124dc

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

dist/zone-microtask.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ function patchRequestAnimationFrame(obj, fnNames) {
504504
var callZone = global.zone.isRootZone() ? global.zone.fork() : global.zone;
505505
if (fn) {
506506
arguments[0] = function () {
507-
return callZone.run(fn, arguments);
507+
return callZone.run(fn, this, arguments);
508508
};
509509
}
510510
return delegate.apply(obj, arguments);
@@ -523,9 +523,8 @@ function patchSetFunction(obj, fnNames) {
523523

524524
if (delegate) {
525525
global.zone[name] = function (fn) {
526-
var fnRef = fn;
527526
arguments[0] = function () {
528-
return fnRef.apply(this, arguments);
527+
return fn.apply(this, arguments);
529528
};
530529
var args = utils.bindArgumentsOnce(arguments);
531530
return delegate.apply(obj, args);

0 commit comments

Comments
 (0)