@js
EventListeners manages a list of event callback functions.
Slots
- addSource
-
Add a listener callback function
- fireSource
-
Fire the event to all the listeners
- isEmptySource
-
Bool isEmpty()
Return if size is zero.
- listSource
-
|Event|[] list()
Get the list of registered callback functions.
-
private |Event|[] listeners := |Event->Void|[,]
List of listeners
-
internal Void modified()
Fire internal modified event
-
internal |EventListeners|? onModify
Callback when list of listeners is modified
- removeSource
-
Remove a listener callback function
- sizeSource
-
Int size()
Return number of registered callback functions.