emit
Emits an event, immediately calling all event handlers.
emit(event: ManagedEvent): this emit(event: string, data?: any): this
Notes
- Events can be handled using ManagedObject.listen() or an Observer. Refer to ManagedEvent for details.
Parameters
- event — An instance of ManagedEvent, or an event name; if a name is provided, an instance of ManagedEvent will be created by this method
- data — Additional data to be set on ManagedEvent.data, if
event
is a string
Related
- class ManagedObjectThe base class of all managed objects, which can be placed into a tree structure to enable event handling and data binding.