diff options
author | bspates <bxs4361@g.rit.edu> | 2016-04-03 16:38:36 -0700 |
---|---|---|
committer | bspates <bxs4361@g.rit.edu> | 2016-04-03 16:38:36 -0700 |
commit | 04c554894f95c5cb043167a0d54f81396bb73f1c (patch) | |
tree | df0da790cd7626dcd8f0df0a77791317f48dfca7 | |
parent | 283f5083f47c42f459bb07f20f48fda9f724fffa (diff) | |
download | async-04c554894f95c5cb043167a0d54f81396bb73f1c.tar.gz |
explicitly bind 'this', curried by lodash's rest method, to the wrapped method before invoking
-rw-r--r-- | lib/internal/initialParams.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/initialParams.js b/lib/internal/initialParams.js index 635caba..55c4e12 100644 --- a/lib/internal/initialParams.js +++ b/lib/internal/initialParams.js @@ -3,6 +3,6 @@ import rest from 'lodash/rest'; export default function (fn) { return rest(function (args/*..., callback*/) { var callback = args.pop(); - fn(args, callback); + fn.call(this, args, callback); }); } |