Skip to content

Instantly share code, notes, and snippets.

@doug
Created February 19, 2014 23:44
Show Gist options
  • Select an option

  • Save doug/9103978 to your computer and use it in GitHub Desktop.

Select an option

Save doug/9103978 to your computer and use it in GitHub Desktop.
after.js
function after(counter, callback) {
return function() {
if (--counter <= 0) {
if (callback) {
callback();
}
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment