Namespace | tinymce.util |
Class | Dispatcher |
Method | Defined By |
---|---|
Dispatcher(s:Object)
Constructs a new event dispatcher object.
|
Dispatcher |
add(cb:function, s:Object):function
Add an observer function to be executed when a dispatch call is done.
|
Dispatcher |
addToTop(cb:function, s:Object):function
Add an observer function to be executed to the top of the list of observers.
|
Dispatcher |
dispatch(..:Object):Object
Dispatches an event to all observers/listeners.
|
Dispatcher |
remove(cb:function):function
Removes an observer function.
|
Dispatcher |
public
function Dispatcher(s:Object)
s:Object | Optional default execution scope for all observer functions. |
public
function add(cb:function, s:Object):function
cb:function | Callback function to execute when a dispatch event occurs. |
s:Object | Optional execution scope, defaults to the one specified in the class constructor. |
public
function addToTop(cb:function, s:Object):function
cb:function | Callback function to execute when a dispatch event occurs. |
s:Object | Optional execution scope, defaults to the one specified in the class constructor. |
public
function dispatch(..:Object):Object
..:Object | Any number of arguments to dispatch. |
public
function remove(cb:function):function
cb:function | Observer function to remove. |