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

Commit

Permalink
fix: dequeue tasks from the zone that enqueued it
Browse files Browse the repository at this point in the history
  • Loading branch information
btford committed Jun 5, 2014
1 parent 4b6e411 commit f127fd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ Zone.prototype = {
},

bindOnce: function (fn) {
var boundZone = this;
return this.bind(function () {
var result = fn.apply(this, arguments);
zone.dequeueTask(fn);
boundZone.dequeueTask(fn);
return result;
});
},
Expand Down

0 comments on commit f127fd4

Please sign in to comment.