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

Commit f127fd4

Browse files
committed
fix: dequeue tasks from the zone that enqueued it
1 parent 4b6e411 commit f127fd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: zone.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ Zone.prototype = {
6666
},
6767

6868
bindOnce: function (fn) {
69+
var boundZone = this;
6970
return this.bind(function () {
7071
var result = fn.apply(this, arguments);
71-
zone.dequeueTask(fn);
72+
boundZone.dequeueTask(fn);
7273
return result;
7374
});
7475
},

0 commit comments

Comments
 (0)