Skip to content

Instantly share code, notes, and snippets.

@adalovebass
Created October 2, 2014 17:41
Show Gist options
  • Save adalovebass/00b86b02b3c2fc230406 to your computer and use it in GitHub Desktop.
Save adalovebass/00b86b02b3c2fc230406 to your computer and use it in GitHub Desktop.
// empty the queue
var currentTickQueue = nextTickQueue.splice(0);
for (i = 0; i < currentTickQueue.length; i++) currentTickQueue[i].call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment