Invoke all listeners.
The data to invoke all listeners with
An object, where the prevented field is true when one of the listeners requested to prevent the event, otherwise false
This function is only used internally for proxies
Subscribe to the event / hook
A token that can be used to unsubscribe from the event / hook later on
A callback that will be invoked when the event / hook occurs
This function is only used internally for proxies
Remove a listener
The token that was specified when subscribing to the listener. An invalid token does not result in an error.
Extension for the BaklavaEvent class. A listener can return
falseto prevent this event from happening.