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 <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
  • 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.