Docs (4.0.0)
class ManagedObject method

emit

Emits an event, immediately calling all event handlers.

emit(event: ManagedEvent): this

emit(event: string, data?: any): this

Notes

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.