The goog.events.Event Class

goog.events.Event(type, opt_target)

A base class for event objects, so that they can support preventDefault and stopPropagation.

type {string}
Event Type.
opt_target {Object=}
Reference to the object that is the target of this event. It has to implement the {@code EventTarget} interface declared at {@link http://developer.mozilla.org/en/DOM/EventTarget}.

.currentTarget {Object|undefined}

Object that had the listener attached.

.defaultPrevented {boolean}

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.

.preventDefault()

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

.propagationStopped_ {boolean}

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}

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

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

.stopPropagation()

Stops event propagation.

.target {Object|undefined}

Target of the event.

.type {string}

Event type.