From a71f040a665c20cb2e9041e0717d6d5b721ea8d8 Mon Sep 17 00:00:00 2001 From: Ajido Date: Wed, 25 Apr 2018 23:46:54 +0900 Subject: [PATCH 1/2] doc: add emitter.off to events.md --- doc/api/events.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/api/events.md b/doc/api/events.md index a5a45ca3de4834..5970062873f7be 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -372,6 +372,17 @@ console.log(util.inspect(server.listeners('connection'))); // Prints: [ [Function] ] ``` +### emitter.off(eventName, listener) + + +* `eventName` {string|symbol} +* `listener` {Function} +* Returns: {EventEmitter} + +Alias for `emitter.removeListener(eventName, listener)`. + ### emitter.on(eventName, listener)