Permalink
Browse files

Closes GH-3 typo

  • Loading branch information...
1 parent 43c5545 commit 5846d8ebb88b5bc5870405174cf995e8d42f4237 @isaacs isaacs committed Feb 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/async-map.js
View
2 lib/async-map.js
@@ -5,7 +5,7 @@ function asyncMap (list, fn, cb_) {
, errState = null
function cb (er, data) {
if (errState) return
- if (er) return cb(errState = er)
+ if (er) return cb_(errState = er)
results.push(data)
if (-- n === 0)
return cb_(null, results)

3 comments on commit 5846d8e

@x1B

Mind pushing this to npm? The 1.1.0 I dled still has this error. Thanks!

@isaacs
npm member

just bumped to 1.1.1 and published.

@x1B

Thanks for the quick response, Isaac! My code works now.

Please sign in to comment.