Browse Source

doc: reflect new require('events') behaviour

We don't need to do `require('events').EventEmitter` any longer.

PR-URL: https://github.com/iojs/io.js/pull/975
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
v1.8.0-commit
Alex Yursha 10 years ago
committed by Ben Noordhuis
parent
commit
a28945b128
  1. 6
      doc/api/events.markdown

6
doc/api/events.markdown

@ -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

Loading…
Cancel
Save