Class: Event

H.util.Event

new H.util.Event (type, opt_target)

This is a base event class which is used for all events dispatched by any instance of EventTarget within the API.

Name Type Description
type string

Event Type.

opt_target Object optional

A reference to the object that is the target of the given event. It must implement the EventTarget interface.

Members

AT_TARGET number constant

This property indicates that the event is being evaluated at the target.

BUBBLING_PHASE number constant

This property identifies the current event phase as the bubbling phase.

CAPTURING_PHASE number constant

This property identifies the current event phase as the capturing phase.

currentTarget *

This property holds an object that receives notification of the event (via an attached listener).

defaultPrevented boolean

This property holds a value indicating if preventDefault() was called on the current event.

eventPhase number

This property indicates which phase of the event flow is being evaluated.

target *

This property holds the object which triggered the event.

type string

This property holds the name of the dispatched event.

Methods

preventDefault ()

This method sets a flag that can be used to prevent the default behavior when the even is fired.

stopPropagation ()

This method stops the propagation of the event.