Skip to content
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

doc: add added: information for events #7822

Closed
wants to merge 1 commit into from

Conversation

lpinca
Copy link
Member

@lpinca lpinca commented Jul 21, 2016

Checklist
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

doc

Description of change

Ref: #6578

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. events Issues and PRs related to the events subsystem / EventEmitter. labels Jul 21, 2016
@@ -167,6 +167,9 @@ myEmitter.emit('error', new Error('whoops!'));
```

## Class: EventEmitter
<!-- YAML
added: v0.1.90
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be v0.1.33.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct, I'll fix it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, it's actually v0.1.26.

@mscdex
Copy link
Contributor

mscdex commented Jul 21, 2016

EventEmitter.listenerCount is missing metadata. It was added in v0.9.12. Deprecated in v4.0.0.

EventEmitter.defaultMaxListeners is also missing metadata. It was added in v0.11.2.


* `eventName` {String|Symbol} The event name
* `listener` {Function} The event handler function

The `'removeListener'` event is emitted *after* the `listener` is removed.

### EventEmitter.listenerCount(emitter, eventName)
<!-- YAML
added: v0.9.12
-->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I forgot to add that there should also be: deprecated: v4.0.0

@mscdex
Copy link
Contributor

mscdex commented Jul 21, 2016

LGTM

@lpinca
Copy link
Member Author

lpinca commented Jul 21, 2016

I missed quite a few things, thanks for reviewing @mscdex.

@jasnell
Copy link
Member

jasnell commented Aug 5, 2016

LGTM

jasnell pushed a commit that referenced this pull request Aug 5, 2016
PR-URL: #7822
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Brian White <[email protected]>
@jasnell
Copy link
Member

jasnell commented Aug 5, 2016

Landed in 769f63c

@jasnell jasnell closed this Aug 5, 2016
@lpinca lpinca deleted the add/added-events branch August 6, 2016 05:04
@cjihrig cjihrig mentioned this pull request Aug 8, 2016
cjihrig pushed a commit that referenced this pull request Aug 10, 2016
PR-URL: #7822
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Brian White <[email protected]>
@cjihrig cjihrig mentioned this pull request Aug 11, 2016
@MylesBorins
Copy link
Contributor

This is not backporting to v4.x cleanly. Please feel free to manually backport

lpinca added a commit to lpinca/node that referenced this pull request Oct 1, 2016
PR-URL: nodejs#7822
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Brian White <[email protected]>
MylesBorins pushed a commit that referenced this pull request Oct 4, 2016
Ref: #8879

PR-URL: #7822
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Brian White <[email protected]>
MylesBorins pushed a commit that referenced this pull request Oct 10, 2016
Ref: #8879

PR-URL: #7822
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Brian White <[email protected]>
rvagg pushed a commit that referenced this pull request Oct 18, 2016
Ref: #8879

PR-URL: #7822
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Brian White <[email protected]>
MylesBorins pushed a commit that referenced this pull request Oct 26, 2016
Ref: #8879

PR-URL: #7822
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Brian White <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. events Issues and PRs related to the events subsystem / EventEmitter.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants