Skip to content

Instantly share code, notes, and snippets.

@spion
Last active January 2, 2016 21:49
Show Gist options
  • Select an option

  • Save spion/8365587 to your computer and use it in GitHub Desktop.

Select an option

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