Skip to content

Commit

Permalink
Fix a missing new in constructor example in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjstone committed Feb 25, 2012
1 parent 1ecef59 commit 9c04f28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -14,7 +14,8 @@ EventEmitter2 is a an implementation of the EventEmitter found in Node.js
- The constructor takes a configuration object.

```javascript
var server = EventEmitter2({
var EventEmitter2 = require('eventemitter2').EventEmitter2;
var server = new EventEmitter2({
wildcard: true, // should the event emitter use wildcards.
delimiter: '::', // the delimiter used to segment namespaces, defaults to `.`.
maxListeners: 20, // the max number of listeners that can be assigned to an event, defaults to 10.
Expand Down

0 comments on commit 9c04f28

Please sign in to comment.