Files
node/lib
James M Snell b6e3fa745b events: add eventNames() method
Per https://github.com/nodejs/node/issues/1817, there are many modules
that currently abuse the private `_events` property on EventEmitter.
One of the ways it is used is to determine if a particular event is
being listened for. This adds a simple `eventNames()` method that
returns an array of the events with currently registered listeners.

PR-URL: https://github.com/nodejs/node/pull/5617
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
2016-03-15 09:25:35 -07:00
..
2015-10-08 17:32:08 -07:00
2016-01-26 20:53:05 +01:00
2016-03-15 09:25:35 -07:00
2016-02-01 21:52:04 -05:00
2016-01-31 19:16:09 +01:00
2015-12-25 13:05:23 -08:00
2016-03-07 14:48:49 -06:00
2016-01-16 19:54:25 +01:00
2015-12-25 13:05:23 -08:00
2015-01-31 23:47:29 -05:00