The name of the event to listen for (must be a key in E).
The function to be called when the event is fired.
If true, the listener will be added to the beginning of the listener list (capturing phase).
Dispatches an event with a given name and payload to all registered listeners.
The name of the event to fire (must be a key in E).
The event payload (event object) to pass to the listeners.
Removes a previously registered event listener.
The name of the event from which to remove the listener.
The specific callback function to remove. It must be the same function instance that was originally registered.
observe changes on a specific path and everything below it. fires for the path itself and for any descendant: watch( "user", cb ) → fires on user, user.name, user.tags[0], ... returns a handle with off() to unsubscribe.
Registers an event listener for a specific event name.