From ae0c5099bd8f08a61f70a0ebc39b32a2ce52ddb0 Mon Sep 17 00:00:00 2001 From: Oliver Caldwell Date: Mon, 15 Jul 2013 21:26:55 +0100 Subject: [PATCH] Added the once alias to the alias list. --- docs/guide.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guide.md b/docs/guide.md index a580c5e..975ead0 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -274,6 +274,10 @@ ee.emitEvent('addStuff', [10, 20]); * `off` - `removeListener` * `trigger` - `emitEvent` +I've also added one since then. + + * `once` - `addOnceListener` + ### Using regular expressions You can pass a regular expression to pretty much every function in EventEmitter in place of an event name string. So if you have two events, say, bar and baz, you can manipulate both of them with `/ba[rz]/`.