The goog.gears.WorkerEvent Class

goog.gears.WorkerEvent
> goog.events.Event

goog.gears.WorkerEvent(type, messageObject)

Event used when the worker recieves a message

type {string}
The type of event.
messageObject {GearsMessageObject}
The message object.

.defaultPrevented {boolean}

Inherited from goog.events.Event .

Whether the default action has been prevented. This is a property to match the W3C specification at {@link http://www.w3.org/TR/DOM-Level-3-Events/#events-event-type-defaultPrevented}. Must be treated as read-only outside the class.

.message {*}

The message sent from the worker.

.messageObject {GearsMessageObject}

The object containing all information about the message.

.preventDefault()

Inherited from goog.events.Event .

Prevents the default action, for example a link redirecting to a url.

.propagationStopped_ {boolean}

Inherited from goog.events.Event .

Whether to cancel the event in internal capture/bubble processing for IE.

@suppress
{underscore} Technically public, but referencing this outside this package is strongly discouraged.

.returnValue_ {boolean}

Inherited from goog.events.Event .

Return value for in internal capture/bubble processing for IE.

@suppress
{underscore} Technically public, but referencing this outside this package is strongly discouraged.

.stopPropagation()

Inherited from goog.events.Event .

Stops event propagation.