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

Commit

Permalink
0.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Sep 29, 2015
1 parent 79a37c0 commit e6124dc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions dist/zone-microtask.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ function patchRequestAnimationFrame(obj, fnNames) {
var callZone = global.zone.isRootZone() ? global.zone.fork() : global.zone;
if (fn) {
arguments[0] = function () {
return callZone.run(fn, arguments);
return callZone.run(fn, this, arguments);
};
}
return delegate.apply(obj, arguments);
Expand All @@ -523,9 +523,8 @@ function patchSetFunction(obj, fnNames) {

if (delegate) {
global.zone[name] = function (fn) {
var fnRef = fn;
arguments[0] = function () {
return fnRef.apply(this, arguments);
return fn.apply(this, arguments);
};
var args = utils.bindArgumentsOnce(arguments);
return delegate.apply(obj, args);
Expand Down
Loading

0 comments on commit e6124dc

Please sign in to comment.