Permalink
Browse files

use callback reduce for find

  • Loading branch information...
Raynos committed Feb 13, 2013
1 parent 08e6fa7 commit 786e788ac76a0d81637a4942c57cbcc071fa186b
Showing with 2 additions and 1 deletion.
  1. +2 −1 find.js
View
@@ -7,6 +7,7 @@ module.exports = find
function find(collection, selector, options) {
return expand(collection, function (collection) {
- return collection.find(selector || {}, options || {})
+ return callback.call(collection, collection.find
+ , selector || {}, options || {})
})
}

0 comments on commit 786e788

Please sign in to comment.