diff options
author | Alexander Early <alexander.early@gmail.com> | 2017-03-27 12:54:04 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2017-03-27 12:54:04 -0700 |
commit | 57b88774c5ed515ead36fb84f81550f7ff807001 (patch) | |
tree | 12eada8010f96d2aff27a75ba53e834b83eaec18 /lib/internal | |
parent | 700aa23851833ac9baf02f6c4fda72c00eeb224c (diff) | |
download | async-57b88774c5ed515ead36fb84f81550f7ff807001.tar.gz |
fix small issues from PR
Diffstat (limited to 'lib/internal')
-rw-r--r-- | lib/internal/applyEach.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/internal/applyEach.js b/lib/internal/applyEach.js index f611def..285a6a2 100644 --- a/lib/internal/applyEach.js +++ b/lib/internal/applyEach.js @@ -1,4 +1,3 @@ -import arrayMap from 'lodash/_arrayMap' import rest from './rest'; import initialParams from './initialParams'; import wrapAsync from './wrapAsync'; @@ -7,8 +6,8 @@ export default function applyEach(eachfn) { return rest(function(fns, args) { var go = initialParams(function(args, callback) { var that = this; - return eachfn(arrayMap(fns, wrapAsync), function (fn, cb) { - fn.apply(that, args.concat(cb)); + return eachfn(fns, function (fn, cb) { + wrapAsync(fn).apply(that, args.concat(cb)); }, callback); }); if (args.length) { |