Raster.addListener( element, eventName, eventHandler )
Adds a given event listener to a DOM element.Parameters
Name | Type | Description | |
---|---|---|---|
element | object | DOM element where to attach the event | |
eventName | string | Event name without the "on" prefix. | |
eventHandler | function | Pointer to the function listening for this event. |