Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
lib,src,doc: remove usage of events.EventEmitter#2921
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
lib,src,doc: remove usage of events.EventEmitter #2921
Uh oh!
There was an error while loading. Please reload this page.
Conversation
The `events` module already exports `EventEmitter` constructor function So, we don't have to use `events.EventEmitter` to access it. Refer: nodejs#2896
lib/_http_server.js Outdated
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.
maybe var obj = new EventEmitter();?
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.
@evanlucas I updated this. Thanks :-)
The `events` module already exports `EventEmitter` constructor function So, we don't have to use `events.EventEmitter` to access it. Refer: nodejs#2896
742a9ad to 705ff31Comparethefourtheye commented Sep 19, 2015
Removing the test changes, after a lengthy discussion with @brendanashworth ;-) |
silverwind commented Sep 22, 2015
silverwind commented Sep 22, 2015
LGTM |
1 similar comment
targos commented Sep 22, 2015
LGTM |
The `events` module already exports `EventEmitter` constructor function So, we don't have to use `events.EventEmitter` to access it. Refer: #2896 PR-URL: #2921 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
The `events` module already exports `EventEmitter` constructor function So, we don't have to use `events.EventEmitter` to access it. Refer: #2896 PR-URL: #2921 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
thefourtheye commented Sep 22, 2015
The `events` module already exports `EventEmitter` constructor function So, we don't have to use `events.EventEmitter` to access it. Refer: #2896 PR-URL: #2921 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
The `events` module already exports `EventEmitter` constructor function So, we don't have to use `events.EventEmitter` to access it. Refer: #2896 PR-URL: #2921 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
The 'events' module already exports 'EventEmitter' constructor function - nodejs/node#2921
The 'events' module already exports 'EventEmitter' constructor function - nodejs/node#2921
The
eventsmodule already exportsEventEmitterconstructor functionSo, we don't have to use
events.EventEmitterto access it.Refer: #2896
cc @silverwind@evanlucas