Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix bug with nested mongode calls

  • Loading branch information...
commit 1c5945f29d779ff8cd88963a17bdd0e5a2c3a9a5 1 parent a65b731
Vinay Pulim authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/collection.js
  2. +1 −1  package.json
View
4 lib/collection.js
@@ -21,11 +21,11 @@ Collection.prototype._connected = function(collection) {
self._collection = collection;
self._isConnected = true;
- self._waiting.forEach(function(cursor) {
+ for (var i=0, cursor; cursor=self._waiting[i]; i++) {
var fn = collection[cursor.command],
c = fn.apply(collection, cursor.args);
cursor._connected(c);
- })
+ };
self._waiting = [];
}
View
2  package.json
@@ -1,6 +1,6 @@
{
"name":"mongode",
- "version":"0.0.5",
+ "version":"0.0.6",
"description":"A thin wrapper around node-mongodb-native with a simpler API",
"engines":{"node":">=0.4.0"},
"author":"Vinay Pulim <v@pulim.com>",
Please sign in to comment.
Something went wrong with that request. Please try again.