Skip to content

Commit

Permalink
set this as default context if not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Mar 17, 2016
1 parent a50ad0e commit 1f62ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ require = fn // eslint-disable-line no-undef, no-native-reassign

utils.iteratorFactory = function iteratorFactory (self) {
var options = self.options
var context = options.context
var context = options.context || self
var params = utils.isArray(options.params) && options.params || []

return function iterator (fn, next) {
Expand Down

0 comments on commit 1f62ce9

Please sign in to comment.