Class: GlobalEventListener

GlobalEventListener(eventType, handler)

new GlobalEventListener(eventType, handler)

Thus function subscribes a component to a particular event change
Parameters:
Name Type Description
eventType string The tag of the event to be subscribed
handler function Callback function
Source:
Example
GlobalEventListener(UPDATE_POST_ID_FETCH_TAG, postIdChangeCallback)
GlobalEventListener(UPDATE_STATUS_POST_LOAD_TAG, postLoadStatusChangeCallback)