tinymce.util.Observable
This mixin adds event binding logic to classes. Adapts the EventDispatcher class.
Summary
Methods
Name | Summary | Defined by |
---|---|---|
Fires the specified event by name. Consult the event reference for more details on each event. |
||
Returns true/false if the object has a event of the specified name. |
||
Unbinds an event listener to a specific event by name. Consult the event reference for more details on each event. |
||
Binds an event listener to a specific event by name. Consult the event reference for more details on each event. |
||
Bind the event callback and once it fires the callback is removed. Consult the event reference for more details on each event. |
Methods
fire()
fire(name: String, args: Object?, bubble: Boolean?): Object
Fires the specified event by name. Consult the event reference for more details on each event.
hasEventListeners()
hasEventListeners(name: String): Boolean
Returns true/false if the object has a event of the specified name.
off()
off(name: String?, callback: callback?): Object
Unbinds an event listener to a specific event by name. Consult the event reference for more details on each event.
on()
on(name: String, callback: callback, prepend: Boolean): Object
Binds an event listener to a specific event by name. Consult the event reference for more details on each event.
once()
once(name: String, callback: callback): Object
Bind the event callback and once it fires the callback is removed. Consult the event reference for more details on each event.