summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Early <alexander.early@gmail.com>2016-04-07 13:43:29 -0700
committerAlex Early <alexander.early@gmail.com>2016-04-07 13:43:29 -0700
commit0a3c1b14654ae8b58839cefdad1e8aa8cf147631 (patch)
tree2bad52cc3ee840fc0ad86bfa4afb8db3438e4361 /lib
parente979953a11f66886f6d387a9e3391917b115127e (diff)
parent27e0a8bf7934d5f1a9ab7ddf3afef9bec33c54ef (diff)
downloadasync-0a3c1b14654ae8b58839cefdad1e8aa8cf147631.tar.gz
Merge pull request #1094 from bspates/bind-after-ensure-async
Bind Context to Functions wrapped by initialParams
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/initialParams.js2
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);
});
}