Browse files

fix for mongodb 1.0.x

  • Loading branch information...
1 parent bf5be9a commit 7534d1c96430a785f1594ce65f28b5a4c21bcd41 @guileen committed May 15, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/mongoskin/db.js
View
1 lib/mongoskin/db.js
@@ -196,6 +196,7 @@ var bindSkin = function(name, method) {
//bind method of mongodb.Db to SkinDb
for (var name in Db.prototype) {
+ if(!name || name[0] == '_' || name == 'state') continue;
var method = Db.prototype[name];
if (name !== 'bind' && name !== 'open' && name !== 'collection' && name !== 'admin') {
bindSkin(name, method);

0 comments on commit 7534d1c

Please sign in to comment.