Class: Event

H5P. Event

new Event(type, data, extras)

The Event class for the EventDispatcher.
Parameters:
Name Type Argument Description
type string
data *
extras Object <optional>
Properties
Name Type Argument Description
bubbles boolean <optional>
external boolean <optional>

Methods

getBubbles() → {boolean}

Get bubbling status
Returns:
true if bubbling false otherwise
Type
boolean

preventBubbling()

Prevent this event from bubbling up to parent

scheduleForExternal() → {boolean}

Try to schedule an event for externalDispatcher
Returns:
true if external and not already scheduled, otherwise false
Type
boolean
Documentation generated by JSDoc 3.4.3 on 2017-02-07T13:45:43+01:00