Skip to content

Conversation

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

@silverwind
Copy link
Contributor

LGTM

1 similar comment
@targos
Copy link
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 <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
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 <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
@thefourtheye
Copy link
ContributorAuthor

Thanks for the review, landed in f32a606 and 7953c83

@thefourtheyethefourtheye 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 <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
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 <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
@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