diff --git a/dist/immediate.js b/dist/immediate.js index 12c5d67..662021f 100644 --- a/dist/immediate.js +++ b/dist/immediate.js @@ -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; @@ -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; } }