Skip to content

Commit

Permalink
doc: reflect new require('events') behaviour
Browse files Browse the repository at this point in the history
We don't need to do `require('events').EventEmitter` any longer.

PR-URL: #975
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
  • Loading branch information
yursha authored and bnoordhuis committed Mar 16, 2015
1 parent 85a92a3 commit a28945b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/api/events.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ attached to.

## Class: events.EventEmitter

To access the EventEmitter class, `require('events').EventEmitter`.
Use `require('events')` to access the EventEmitter class.

```javascript
var EventEmitter = require('events');
```

When an `EventEmitter` instance experiences an error, the typical action is
to emit an `'error'` event. Error events are treated as a special case in
Expand Down

0 comments on commit a28945b

Please sign in to comment.