Class: EventSource

Oracle® JavaScript Extension Toolkit (JET)
3.2.0

E87541-01

QuickNav

oj. EventSource

Version:
  • 3.2.0
Object which supports subscribing to and firing events

Constructor

new EventSource()

Source:

Methods

handleEvent(eventType, event) → {boolean}

Handle the event
Parameters:
Name Type Description
eventType string event type
event Object event
Source:
Returns:
Returns false if event is cancelled
Type
boolean

Init()

Initializes the instance.
Source:

off(eventType, eventHandler)

Detach an event handler
Parameters:
Name Type Description
eventType string eventType
eventHandler function(Object) event handler function
Source:

on(eventType, eventHandler)

Attach an event handler
Parameters:
Name Type Description
eventType string eventType
eventHandler function(Object) event handler function
Source: