summaryrefslogtreecommitdiff
path: root/lib/async.js
diff options
context:
space:
mode:
authorCaolan McMahon <caolan@caolanmcmahon.com>2013-01-31 05:22:17 -0800
committerCaolan McMahon <caolan@caolanmcmahon.com>2013-01-31 05:22:17 -0800
commit6462a5ad82a9ffb4aa88e4bab21fe8ec90e10590 (patch)
tree1c68cff5bc91cd902febda752803688763ee7a27 /lib/async.js
parentbbfed6066bcf8045f27aba26c878b0ff75ad7ce2 (diff)
parentcd7a17b8195c5dbed8c165b22287ae9b2d0a5144 (diff)
downloadasync-6462a5ad82a9ffb4aa88e4bab21fe8ec90e10590.tar.gz
Merge pull request #141 from alexgorbatchev/master
`waterfall` now passes all arguments to callback even if there was an error.
Diffstat (limited to 'lib/async.js')
-rw-r--r--lib/async.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/async.js b/lib/async.js
index 96bc67a..b922126 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -451,7 +451,7 @@
var wrapIterator = function (iterator) {
return function (err) {
if (err) {
- callback(err);
+ callback.apply(null, arguments);
callback = function () {};
}
else {