diff options
author | Benjamin Steephenson <benjaminsteephenson@gmail.com> | 2015-03-03 09:59:07 -0500 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2015-08-03 20:44:41 -0700 |
commit | 8cbf7cb0218ec0124c6edf035cb50824d2ee709f (patch) | |
tree | bd7cd4f33767fa823155a3754df0ba419c97f2eb | |
parent | 6b6bd214977981512cca9bee5c4a58d16aec7378 (diff) | |
download | node-8cbf7cb0218ec0124c6edf035cb50824d2ee709f.tar.gz |
docs:events clarify emitter.listener() behavior
Clarifies that emitter.listener() returns a copy, not a reference
Resolves issue #9022
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/joyent/node/pull/25591
-rw-r--r-- | doc/api/events.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/events.markdown b/doc/api/events.markdown index a98eb5ed3..857d5658b 100644 --- a/doc/api/events.markdown +++ b/doc/api/events.markdown @@ -104,7 +104,7 @@ Note that `emitter.setMaxListeners(n)` still has precedence over ### emitter.listeners(event) -Returns an array of listeners for the specified event. +Returns a copy of the array of listeners for the specified event. server.on('connection', function (stream) { console.log('someone connected!'); |