Permalink
Browse files

Fix a missing `new` in constructor example in README.md

  • Loading branch information...
1 parent 1ecef59 commit 9c04f285ea0672a82717f56fc92983b43c570ff6 @andrewjstone andrewjstone committed Feb 25, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
@@ -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.

0 comments on commit 9c04f28

Please sign in to comment.