Skip to content

Commit

Permalink
fix bug with nested mongode calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinay Pulim committed Oct 18, 2011
1 parent a65b731 commit 1c5945f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/collection.js
Expand Up @@ -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 = [];
}

Expand Down
2 changes: 1 addition & 1 deletion 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>",
Expand Down

0 comments on commit 1c5945f

Please sign in to comment.