Skip to content

Instantly share code, notes, and snippets.

@spion
Last active January 2, 2016 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spion/8365587 to your computer and use it in GitHub Desktop.
Save spion/8365587 to your computer and use it in GitHub Desktop.
function nextRequire(prevWorkDone) {
if(requires.length) {
return stage(requires.shift(), true, options).then(function(workDone) {
anyWorkDone = anyWorkDone || workDone;
return nextRequire();
});
} else {
return work(rules, options, isChild, anyWorkDone);
}
}
return nextRequire();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment