Skip to content

Commit

Permalink
docs: update listener removal API (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emzawadzki authored May 28, 2024
1 parent a0b6797 commit e8d811b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/api-reference/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ player.once('EventName', function(data){
### Cancel a registered event

```
// Remove all listeners for event type
player.off('EventName');
```

// Remove specific listener for event type
player.off('EventName', listener)
```

### **on('ready')**

Expand Down

0 comments on commit e8d811b

Please sign in to comment.