classWORKER
Event
js/worker.js:687
Event(type, options)
Standard-style event object used by the Worker event system.
Parameters
| Name | Type | Description |
|---|---|---|
type | string | |
optionsoptional | Object |
Event(type, options)
Standard-style event object used by the Worker event system.
| Name | Type | Description |
|---|---|---|
type | string | |
optionsoptional | Object |
bubbles: boolean = false
Whether the event participates in bubbling through an event-target hierarchy.
cancelable: boolean = false
Whether preventDefault() can cancel this event.
currentTarget: ?EventTarget = null
Event target whose listener is currently being invoked. It is null outside listener dispatch.
defaultPrevented: boolean = false
true when preventDefault() successfully canceled the event's default action.
target: ?EventTarget = null
Event target on which the event was originally dispatched. It is null before dispatch.
type: string = ""
Event type supplied when the event was created, for example message or error.
preventDefault()
stopImmediatePropagation()
stopPropagation()