This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* count is how many callbacks there are in total | |
* after to the function to call when all your callbacks have completed | |
* return a function that you should call to create your callbacks, | |
* optionally passing an individual callback handler | |
*/ | |
function cbcontrol(count, after) { | |
return function(cb) { | |
return function() { | |
cb && cb.apply(this, arguments); |
NewerOlder