From d23e2ad533447636b76292362f9af12c3fa7206a Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Wed, 11 Jul 2012 20:02:02 -0700 Subject: [PATCH] add docs for .listeners(event) --- Readme.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 37714b8..25222b8 100644 --- a/Readme.md +++ b/Readme.md @@ -30,6 +30,10 @@ $ npm install emitter-component Emit an `event` with variable option args. -### Emitter#has(event) +### Emitter#listeners(event) + + Return an array of callbacks, or an empty array. + +### Emitter#hasListeners(event) Check if this emitter has `event` handlers. \ No newline at end of file