emitChange
Emits a change event, an instance of ManagedChangeEvent.
emitChange(name?: string, data?: any): this
Notes
- Events can be handled using ManagedObject.listen() or an Observer. Refer to ManagedEvent for details.
- Change events are treated differently, e.g. change events are also handled using the callback passed to attach() and autoAttach(), and trigger updates of bound (sub) property values.
Parameters
- name — An event name; an instance of ManagedChangeEvent with the provided name will be created by this method
- data — Additional data to be set on ManagedEvent.data
Related
- class ManagedObjectThe base class of all managed objects, which can be placed into a tree structure to enable event handling and data binding.