From f8d81222e8284483c7fc0afd19a2a0ebe6de9b2f Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Tue, 30 Apr 2013 15:26:14 -0700 Subject: event: make setMaxListeners() return this setMaxListeners was the only EventEmitter method that returned undefined, so could not be chained. --- doc/api/events.markdown | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') 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 -- cgit v1.2.3