Skip to content

Commit

Permalink
update bind-context to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Mar 4, 2016
1 parent c46e82a commit 5dc1bce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ var useware = require('useware')
var map = require('arr-map')

module.exports = function usewareContext () {
var args = useware.apply(this, arguments)
var args = useware(arguments)
var ctx = isObject(arguments[0]) ? arguments[0] : (this || {})

return map(args, function (fn) {
return bindContext(fn, ctx)
return bindContext(ctx, fn)
})
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"arr-map": "^2.0.0",
"bind-context": "^1.0.0",
"bind-context": "^2.0.1",
"is-plain-object": "^2.0.1",
"useware": "^1.0.3"
},
Expand Down

0 comments on commit 5dc1bce

Please sign in to comment.