Maps API for JavaScript Developer's Guide

H.util.ChangeEvent

Class Summary

Extends: H.util.Event

This event indicates a change. It contains both the old and the new value.

[ For full details, see the Class Details ]

Property Summary

Table 1. Properties
Properties

target : {*}

This property holds the object which triggered the event.

currentTarget : {*}

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

type : {string}

This property holds the name of the dispatched event.

defaultPrevented : {boolean}

This property holds indicates if preventDefault was called on the current event.

CAPTURING_PHASE : {number}

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

AT_TARGET : {number}

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

BUBBLING_PHASE : {number}

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

eventPhase : {number}

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

Method Summary

Table 2. Methods
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.

Class Description

This event indicates a change. It contains both the old and the new value.

Constructor Details

H.util.ChangeEvent(type, newValue, oldValue)

Parameters:
 
type:
{string}
 
A value indicating the event type
newValue:
{*}
 
The new value of the property
oldValue:
{*}
 
The previous value of the property

Property Details

target: {*}

This property holds the object which triggered the event.

currentTarget: {*}

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

type: {string}

This property holds the name of the dispatched event.

defaultPrevented: {boolean}

This property holds indicates if preventDefault was called on the current event.

CAPTURING_PHASE: {number}

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

AT_TARGET: {number}

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

BUBBLING_PHASE: {number}

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

eventPhase: {number}

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

Method Details

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.