Module: siteKiosk.event.contextAwareEventHub

A module which enables binding and triggering of events outside the current web view context

Methods

<static> bind(target, eventName, callbackOrId) → {*}

Binds to a local or remote event.
Parameters:
Name Type Description
target Object This can either be a web view instance or any other local object
eventName string The name of the event to bind to
callbackOrId function | number Either a callback function or an object model callback ID, if the target is not a web view instance
Returns:
Type
*

<static> trigger(target, eventName) → {*}

Triggers a local or remote event.
Parameters:
Name Type Description
target Object This can either be a web view instance or any other local object
eventName string The name of the event to trigger
Returns:
Type
*