Browse Source

fixed normalize bug and removed a duplicate toArray method

saintedlama/travis-non-legacy
Mathias Buus 14 years ago
parent
commit
e87d993ba7
  1. 5
      index.js
  2. 2
      package.json

5
index.js

@ -70,9 +70,6 @@ Cursor.prototype.forEach = function() {
Cursor.prototype.count = function() {
this._exec('count', arguments);
};
Cursor.prototype.toArray = function() {
this._exec('toArray', arguments);
};
Cursor.prototype.sort = function() {
return this._config('sort', arguments);
};
@ -120,7 +117,7 @@ Collection.prototype.find = function() {
var callback = args.pop();
oncursor.get(common.fork(callback, function(cur) {
cur.toArray(callback);
cur.toArray(normalize(callback));
}));
}

2
package.json

@ -1,7 +1,7 @@
{
"name":"mongojs",
"description":"a simple mongo module that emulates the mongo api",
"version":"0.1.4",
"version":"0.1.5",
"author": "Ge.tt <hello@ge.tt>",
"contributors": [
"Mathias Buus Madsen <m@ge.tt>",

Loading…
Cancel
Save