-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ability to pass array of event names to EventEmitter.prototype…
….once This functionality is implemented by wrapping the listener argument in another listener. This means that the event emitter does not hold a reference to the listener argument (other than that held indirectly through the wrapper) and so it is not possible to remove this listener using `off(..., listener)`. The client library specification does not specify a version of `once` which accepts an array of event names, and we do not advertise it as part of the public API. So, I think the simplest thing is to remove this functionality. Resolves #1452.
- Loading branch information
1 parent
76cc74f
commit cd4f7b3
Showing
3 changed files
with
6 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters