Skip to content

Commit

Permalink
Merge pull request sindresorhus#36 from juliangruber/patch-1
Browse files Browse the repository at this point in the history
docs: Emitter#off()
  • Loading branch information
jonathanong committed Dec 1, 2013
2 parents a14f2e3 + f544102 commit 039f5fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...)

Expand All @@ -66,4 +67,4 @@ Emitter(User.prototype);

### Emitter#hasListeners(event)

Check if this emitter has `event` handlers.
Check if this emitter has `event` handlers.

0 comments on commit 039f5fb

Please sign in to comment.