summaryrefslogtreecommitdiff
path: root/doc/api.txt
diff options
context:
space:
mode:
authorAaron Heckmann <aaron.heckmann@gmail.com>2010-03-08 20:42:10 -0500
committerRyan Dahl <ry@tinyclouds.org>2010-03-09 09:30:14 -0800
commitf8eb16372835f1f17deeb2b169c6d5a14a50cd40 (patch)
treed23e701347d84e7d737c00d2c4e241d9934e163e /doc/api.txt
parentb90d63b9983186a2f13a2ef7d399960f979fc486 (diff)
downloadnode-f8eb16372835f1f17deeb2b169c6d5a14a50cd40.tar.gz
Add removeAllListeners
Diffstat (limited to 'doc/api.txt')
-rw-r--r--doc/api.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api.txt b/doc/api.txt
index a6ca6bf11..c745bc871 100644
--- a/doc/api.txt
+++ b/doc/api.txt
@@ -263,6 +263,9 @@ server.addListener("connection", function (socket) {
Remove a listener from the listener array for the specified event.
*Caution*: changes array indices in the listener array behind the listener.
++emitter.removeAllListeners(event)+ ::
+Removes all listeners from the listener array for the specified event.
+
+emitter.listeners(event)+ ::
Returns an array of listeners for the specified event. This array can be
manipulated, e.g. to remove listeners.