Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Added the once alias to the alias list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed Jul 15, 2013
1 parent 5fbe8dd commit ae0c509
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]/`.
Expand Down

0 comments on commit ae0c509

Please sign in to comment.