summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2013-04-30 15:26:14 -0700
committerBen Noordhuis <info@bnoordhuis.nl>2013-05-03 01:15:22 +0200
commitf8d81222e8284483c7fc0afd19a2a0ebe6de9b2f (patch)
tree22e3ef166174eff8695463418e9c9dd4acb543d7 /doc
parent43951d7cfb773836c283c109d0b9c82affa98ae2 (diff)
downloadandroid-node-v8-f8d81222e8284483c7fc0afd19a2a0ebe6de9b2f.tar.gz
android-node-v8-f8d81222e8284483c7fc0afd19a2a0ebe6de9b2f.tar.bz2
android-node-v8-f8d81222e8284483c7fc0afd19a2a0ebe6de9b2f.zip
event: make setMaxListeners() return this
setMaxListeners was the only EventEmitter method that returned undefined, so could not be chained.
Diffstat (limited to 'doc')
-rw-r--r--doc/api/events.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/events.markdown b/doc/api/events.markdown
index 7e72dcb012..736f79b494 100644
--- a/doc/api/events.markdown
+++ b/doc/api/events.markdown
@@ -80,6 +80,7 @@ added for a particular event. This is a useful default which helps finding
memory leaks. Obviously not all Emitters should be limited to 10. This function
allows that to be increased. Set to zero for unlimited.
+Returns emitter, so calls can be chained.
### EventEmitter.defaultMaxListeners