-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix code example in events API docs #2896
Conversation
This was actually one of the changes from 0.10. |
@@ -23,7 +23,7 @@ attached to. | |||
Use `require('events')` to access the EventEmitter class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See this line, directly above. This was changed ages ago. :)
Thanks for the contribution though, hopefully you'll find something else to contribute! :) |
Sorry, still using v0.10...
|
Yes we probably should. I feel that would be acceptable |
@dgerber yes, would you mind to make a PR for that? :) |
The `events` module already exports `EventEmitter` constructor function So, we don't have to use `events.EventEmitter` to access it. Refer: nodejs#2896
The `events` module already exports `EventEmitter` constructor function So, we don't have to use `events.EventEmitter` to access it. Refer: nodejs#2896
No description provided.