Skip to content

Instantly share code, notes, and snippets.

// empty the queue
var currentTickQueue = nextTickQueue.splice(0);
for (i = 0; i < currentTickQueue.length; i++) currentTickQueue[i].call(this);