Skip to content

lib,src,doc: remove usage of events.EventEmitter - #2921

Closed
thefourtheye wants to merge 2 commits into
nodejs:masterfrom
thefourtheye:events-eventemitter-usage
Closed

lib,src,doc: remove usage of events.EventEmitter#2921
thefourtheye wants to merge 2 commits into
nodejs:masterfrom
thefourtheye:events-eventemitter-usage

Conversation

@thefourtheye

Copy link
Copy Markdown
Contributor

The events module already exports EventEmitter constructor function
So, we don't have to use events.EventEmitter to access it.

Refer: #2896

cc @silverwind@evanlucas

The `events` module already exports `EventEmitter` constructor function
So, we don't have to use `events.EventEmitter` to access it.
Refer: nodejs#2896
@thefourtheyethefourtheye added doc Issues and PRs related to the documentations. events Issues and PRs related to the events subsystem / EventEmitter. test Issues and PRs related to the tests. labels Sep 16, 2015
Comment threadlib/_http_server.js Outdated

Copy link
Copy Markdown
Contributor

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();?

Copy link
Copy Markdown
ContributorAuthor

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
@thefourtheye
thefourtheyeforce-pushed the events-eventemitter-usage branch 2 times, most recently from 742a9ad to 705ff31CompareSeptember 19, 2015 06:47
@thefourtheye

Copy link
Copy Markdown
ContributorAuthor

Removing the test changes, after a lengthy discussion with @brendanashworth ;-)

@thefourtheyethefourtheye removed the test Issues and PRs related to the tests. label Sep 19, 2015
@thefourtheyethefourtheye changed the title lib,src,test,doc: remove usage of events.EventEmitterlib,src,doc: remove usage of events.EventEmitterSep 19, 2015
@silverwind

Copy link
Copy Markdown
Contributor

@silverwind

Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@targos

Copy link
Copy Markdown
Member

LGTM

thefourtheye added a commit that referenced this pull request 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 <me@silverwind.io>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
thefourtheye added a commit that referenced this pull request 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 <me@silverwind.io>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
@thefourtheye

Copy link
Copy Markdown
ContributorAuthor

Thanks for the review, landed in f32a606 and 7953c83

@thefourtheye
thefourtheye deleted the events-eventemitter-usage branch September 22, 2015 18:54
thefourtheye added a commit that referenced this pull request 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 <me@silverwind.io>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
thefourtheye added a commit that referenced this pull request 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 <me@silverwind.io>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
@rvaggrvagg mentioned this pull request Sep 22, 2015
@targostargos mentioned this pull request Oct 24, 2015
stojanovic added a commit to stojanovic/koa that referenced this pull request Oct 24, 2015
The 'events' module already exports 'EventEmitter' constructor function - nodejs/node#2921
truedev0127 added a commit to truedev0127/koa that referenced this pull request Dec 22, 2025
The 'events' module already exports 'EventEmitter' constructor function - nodejs/node#2921
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.eventsIssues and PRs related to the events subsystem / EventEmitter.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@thefourtheye@silverwind@targos@evanlucas