Closed
Description
Callbacks.has()
(without parameters) returns true if the object has listeners and false otherwise. There are a few reasons that this behavior should be explicitly documented:
- The general knowledge of the presence of listeners as frequently useful (in the creation of default behavior, for example)
- This signature is far more performant than the search for a specific listener
- State knowledge is more consistent with loose coupling than specific knowledge
Please add documentation for this signature.
Examples might include a demonstration of this behavior before and after the use of the Callbacks.add and Callbacks.remove methods.
Metadata
Metadata
Assignees
Labels
No labels