File tree 1 file changed +10
-0
lines changed 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,11 @@ myEmitter.emit('event');
222
222
### Event: 'removeListener'
223
223
<!-- YAML
224
224
added: v0.9.3
225
+ changes:
226
+ - version: v6.1.0, v4.7.0
227
+ pr-url: https://github.com/nodejs/node/pull/6394
228
+ description: For listeners attached using `.once()`, the `listener` argument
229
+ now yields the original listener function.
225
230
-->
226
231
227
232
* ` eventName ` {String|Symbol} The event name
@@ -347,6 +352,11 @@ Returns the number of listeners listening to the event named `eventName`.
347
352
### emitter.listeners(eventName)
348
353
<!-- YAML
349
354
added: v0.1.26
355
+ changes:
356
+ - version: v7.0.0
357
+ pr-url: https://github.com/nodejs/node/pull/6881
358
+ description: For listeners attached using `.once()` this returns the
359
+ original listeners instead of wrapper functions now.
350
360
-->
351
361
352
362
Returns a copy of the array of listeners for the event named ` eventName ` .
You can’t perform that action at this time.
0 commit comments