christkv/node-mongodb-native — Issue #513: mongodb.open() w/ noOpen option requires a callback
Author: mojodna
Created: 2012-02-17 20:32:43+00:00
State: open

I should be able to write this code:

```javascript
var mongodb = require("mongodb");
var mongo = mongodb.connect("mongodb://localhost", { noOpen: true });
```

However, `mongodb.connect()` assumes that the last argument is the callback (`args.pop()`), so this becomes necessary, even though it will never be called:

```javascript
var mongodb = require("mongodb");
var mongo = mongodb.connect("mongodb://localhost", { noOpen: true }, function() {});
```