Skip to content

Commit

Permalink
doc: add changelogs for events
Browse files Browse the repository at this point in the history
PR-URL: #11489
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Sam Roberts <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Italo A. Casas <[email protected]>
  • Loading branch information
addaleax committed Feb 24, 2017
1 parent 4f93601 commit 354161d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ myEmitter.emit('event');
### Event: 'removeListener'
<!-- YAML
added: v0.9.3
changes:
- version: v6.1.0, v4.7.0
pr-url: https://github.com/nodejs/node/pull/6394
description: For listeners attached using `.once()`, the `listener` argument
now yields the original listener function.
-->

* `eventName` {String|Symbol} The event name
Expand Down Expand Up @@ -347,6 +352,11 @@ Returns the number of listeners listening to the event named `eventName`.
### emitter.listeners(eventName)
<!-- YAML
added: v0.1.26
changes:
- version: v7.0.0
pr-url: https://github.com/nodejs/node/pull/6881
description: For listeners attached using `.once()` this returns the
original listeners instead of wrapper functions now.
-->

Returns a copy of the array of listeners for the event named `eventName`.
Expand Down

0 comments on commit 354161d

Please sign in to comment.