DomEvent
Extends IDomEvent.
DOM event in the Yandex Maps API system. Provides proxy methods for accessing fields and methods of the source DOM event. The returned values are standardized to account for browser variations. The "position" property is also redefined; an array of the type [pageX, pageY] is returned.
Constructor
DomEvent(originalEvent[, type])
Creates a DOM event in the Yandex Maps API system.
Parameters:
Parameter |
Default value |
Description |
— |
Type: DomEvent DOM event. |
|
— |
Type: Object Type of event. If omitted, it is taken from originalEvent.type. |
* Mandatory parameter/option.
Methods
Name |
Returns |
Description |
Allows the propagation of the event to the map. Inherited from IEvent. |
||
Calls the specified method from the source event. The second and following arguments are passed to the method with the call. Inherited from IEvent. |
||
Object |
Returns the value of a property. First it checks whether the property was set via "set", then it checks whether the property exists in "domEvent.overrideStorage". If it's not found, it looks in "originalEvent". Property values are cached. |
|
Returns source DOM event. Inherited from IDomEvent. |
||
Boolean |
Returns true if the default reaction to the event has been canceled. Inherited from IEvent. |
|
Boolean |
Returns true if the event processing has been interrupted. Inherited from IEvent. |
|
Boolean |
Returns true if the map event is enabled. Inherited from IEvent. |
|
Boolean |
Returns true if event propagation has been interrupted. Inherited from IEvent. |
|
Cancels the default reaction to an event within the Yandex Maps API event system. Calling this method does not affect how the browser processes the default action for the source DOM event. Inherited from IDomEvent. |
||
Stops event processing in the Yandex Maps API event system. I.e. after calling this method, no handler for this event will be called. Calling this method does not affect the processing of the original DOM-event at the browser level. Inherited from IDomEvent. |
||
Stops propagation of the DOM event in the Yandex Maps API event system. Calling this method does not affect propagation of the source DOM event through the DOM tree. Inherited from IDomEvent. |
Methods details
get
{Object} get(name)
Returns the value of a property. First it checks whether the property was set via "set", then it checks whether the property exists in "domEvent.overrideStorage". If it's not found, it looks in "originalEvent". Property values are cached.
Parameters:
Parameter |
Default value |
Description |
|
— |
Type: String Property name. |
* Mandatory parameter/option.
Mandatory parameter/option.