Permalink
Browse files

Fix typo.

  • Loading branch information...
1 parent 8056141 commit 534c42e5dcf2b8c59d4249a3fc8be359a7185bf2 @mbostock committed Jul 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongo-mock/collection.js
@@ -16,7 +16,7 @@ function collection(id, options) {
var i = options.skip || 0;
objects = objects.slice(i, i + (options.limit || Infinity));
}
- if (options.fields) options = options.map(mapper(option.fields));
+ if (options.fields) options = objects.map(mapper(options.fields));
}
callback(null, cursor(objects));
}

0 comments on commit 534c42e

Please sign in to comment.