better name for then/done result

This commit is contained in:
AJ ONeal 2013-08-06 03:11:26 -07:00
parent 480909dabb
commit 5fecd1cb3f
1 changed files with 2 additions and 2 deletions

View File

@ -7,12 +7,12 @@
, index = -1 , index = -1
; ;
function next(BREAK, newArr) { function next(BREAK, result) {
index += 1; index += 1;
if (index === arr.length || BREAK === forEachAsync.__BREAK) { if (index === arr.length || BREAK === forEachAsync.__BREAK) {
dones.forEach(function (done) { dones.forEach(function (done) {
done.call(thisArg, newArr); done.call(thisArg, result);
}); });
return; return;
} }