Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update events.md
  • Loading branch information
Trott authored Jul 30, 2019
commit 489dcde988342b295a1003a290ed2d8c7494756c
11 changes: 5 additions & 6 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,13 @@ myEmitter.emit('event', 1, 2, 3, 4, 5);

// Prints:
// [
// [Function: firstListener],
// [Function: secondListener],
// [Function: thirdListener]
// [Function: firstListener],
// [Function: secondListener],
// [Function: thirdListener]
// ]

// Helloooo! first listener
// event with parameters 1, 2, in second listener
// event with parameters 1, 2, 3, 4, 5, in third listener
// event with parameters 1, 2 in second listener
// event with parameters 1, 2, 3, 4, 5 in third listener
```

### emitter.eventNames()
Expand Down