From f544102278737284f4f58eee4a32121722c9edd7 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Sat, 30 Nov 2013 23:16:22 +0100 Subject: [PATCH] docs: Emitter#off() --- Readme.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 134d6c0..30d18c5 100644 --- a/Readme.md +++ b/Readme.md @@ -53,8 +53,9 @@ Emitter(User.prototype); ### Emitter#off(event, fn) - Remove `event` handler `fn`, or pass only the `event` - name to remove all handlers for `event`. + * Pass `event` and `fn` to remove a listener. + * Pass `event` to remove all listeners on that event. + * Pass nothing to remove all listeners on all events. ### Emitter#emit(event, ...) @@ -66,4 +67,4 @@ Emitter(User.prototype); ### Emitter#hasListeners(event) - Check if this emitter has `event` handlers. \ No newline at end of file + Check if this emitter has `event` handlers.