Skip to content

Commit

Permalink
build 3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed Oct 7, 2014
1 parent de77a4f commit b23bf0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/immediate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ var types = [
];
var draining;
var queue = [];
function drainQueue() {
//named nextTick for less confusing stack traces
function nextTick() {
draining = true;
var i, oldQueue;
var len = queue.length;
Expand All @@ -29,7 +30,7 @@ var i = -1;
var len = types.length;
while (++ i < len) {
if (types[i] && types[i].test && types[i].test()) {
scheduleDrain = types[i].install(drainQueue);
scheduleDrain = types[i].install(nextTick);
break;
}
}
Expand Down

0 comments on commit b23bf0b

Please sign in to comment.