GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix code example in events API docs by dgerber · Pull Request #2896 · nodejs/node

Conversation

@dgerber

@dgerber dgerber commented Sep 16, 2015

Copy link
Copy Markdown

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dgerber
Fix code example in events API docs
79c7b8d
@brendanashworth brendanashworth added doc Issues and PRs related to Node.js documentation. events Issues and PRs related to EventEmitter and the events module. labels Sep 16, 2015
@evanlucas

evanlucas commented Sep 16, 2015

Copy link
Copy Markdown
Contributor

This was actually one of the changes from 0.10. require('events') now returns an EventEmitter

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Fishrock123
Fishrock123 reviewed Sep 16, 2015
View reviewed changes
Comment thread doc/api/events.markdown

@Fishrock123 Fishrock123 Sep 16, 2015

Copy link
Copy Markdown
Contributor

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. :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Fishrock123 Fishrock123 closed this Sep 16, 2015
@Fishrock123

Fishrock123 commented Sep 16, 2015

Copy link
Copy Markdown
Contributor

Thanks for the contribution though, hopefully you'll find something else to contribute! :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dgerber

dgerber commented Sep 16, 2015

Copy link
Copy Markdown
Author

Sorry, still using v0.10...
Then you may want to change that part of the docs which still reads:

const EventEmitter = require('events').EventEmitter;
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas

evanlucas commented Sep 16, 2015

Copy link
Copy Markdown
Contributor

Yes we probably should. I feel that would be acceptable

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Fishrock123

Fishrock123 commented Sep 16, 2015

Copy link
Copy Markdown
Contributor

@dgerber yes, would you mind to make a PR for that? :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

thefourtheye added a commit to thefourtheye/io.js that referenced this pull request Sep 16, 2015
@thefourtheye
doc: remove usage of events.EventEmitter
990659c
The `events` module already exports `EventEmitter` constructor function
So, we don't have to use `events.EventEmitter` to access it.

Refer: nodejs#2896
@thefourtheye thefourtheye mentioned this pull request Sep 16, 2015
lib,src,doc: remove usage of events.EventEmitter #2921
Closed
thefourtheye added a commit to thefourtheye/io.js that referenced this pull request Sep 17, 2015
@thefourtheye
lib,src: remove usage of events.EventEmitter
705ff31
The `events` module already exports `EventEmitter` constructor function
So, we don't have to use `events.EventEmitter` to access it.

Refer: nodejs#2896
thefourtheye added a commit that referenced this pull request Sep 22, 2015
@thefourtheye
doc: remove usage of events.EventEmitter
7953c83
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
@thefourtheye
lib,src: remove usage of events.EventEmitter
f32a606
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
@thefourtheye @rvagg
doc: remove usage of events.EventEmitter
43e2b7f
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
@thefourtheye @rvagg
lib,src: remove usage of events.EventEmitter
1860e0c
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]>
@s4sc s4sc mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities s4sc/node#34
Open
@AyushG3112 AyushG3112 mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities AyushG3112/node#36
Open
@thakursachin467 thakursachin467 mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities thakursachin467/node#31
Open
@erdun erdun mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities erdun/node#54
Open
@olegnn olegnn mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities olegnn/node#48
Open
@RoeeOren RoeeOren mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities RoeeOren/node#43
Open
@GregorFendt GregorFendt mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities GregorFendt/node#29
Open
@timzwit timzwit mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities timzwit/node#34
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#102
Open
@solebox solebox mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities solebox/node#34
Open
@CharliesAngel1 CharliesAngel1 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities CharliesAngel1/node#11
Open
@RickAllMighty8195 RickAllMighty8195 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities RickAllMighty8195/node#29
Open
@Megoy-Tambayan Megoy-Tambayan mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Megoy-Tambayan/node#2
Open
@Dixiejane Dixiejane mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Dixiejane/node#17
Open
@JCsomeShots JCsomeShots mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities JCsomeShots/node#13
Open
@jj-crypto jj-crypto mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities jj-crypto/node#26
Open
@ZRDK ZRDK mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade node-gyp from 9.4.1 to 10.0.0 ZRDK/node#67
Open
@buzzlightyear726 buzzlightyear726 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities buzzlightyear726/node#44
Open
@Renukaloch Renukaloch mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Renukaloch/node#26
Open
@MaxMood96 MaxMood96 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities MaxMood96/node#44
Open
@davidmather davidmather mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities davidmather/node#18
Open
@mrod0101 mrod0101 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities mrod0101/node#14
Closed
@CxsLucyfer CxsLucyfer mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities CxsLucyfer/node#7
Open
@dewaynesmith3711 dewaynesmith3711 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities dewaynesmith3711/node#77
Open
@kingjay66 kingjay66 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities kingjay66/node#9
Open
@zhangpan0907 zhangpan0907 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities zhangpan0907/node#5
Open
@Supermajestcd Supermajestcd mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities Supermajestcd/node#23
Open
@SanchitMahajan236 SanchitMahajan236 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities SanchitMahajan236/node#28
Open
@terrorizer1980 terrorizer1980 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities Exhorder6/node#29
Open
@myvali998 myvali998 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities myvali998/node#14
Open
@ambai ambai mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade node-gyp from 9.4.1 to 10.0.0 ambai/node#73
Open
@dewaynesmith3711 dewaynesmith3711 mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade node-gyp from 8.4.1 to 10.0.0 dewaynesmith3711/node#79
Open
@BryanLaura BryanLaura mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade node-gyp from 8.4.1 to 10.0.0 BryanLaura/node#89
Open
@nicholaschoi168 nicholaschoi168 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities nicholaschoi168/node#19
Open
@jefeaguila jefeaguila mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade node-gyp from 9.4.1 to 10.0.0 jefeaguila/node#54
Open
@Michaela813 Michaela813 mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade node-gyp from 9.4.1 to 10.0.0 Michaela813/node#57
Open
@chrismilleruk chrismilleruk mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities chrismilleruk/node#16
Open
@Michaela813 Michaela813 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities Michaela813/node#58
Open
@JoanKalanzi1 JoanKalanzi1 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities JoanKalanzi1/node#18
Open
@BryanLaura BryanLaura mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities BryanLaura/node#90
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

doc Issues and PRs related to Node.js documentation. events Issues and PRs related to EventEmitter and the events module.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@dgerber @evanlucas @Fishrock123 @brendanashworth
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.