Wrapper around Mojo.Event.listen that also calls get() on the element parameter if it is a string, converting it to a DOM node.
Argument | Type | Description |
---|---|---|
element | String|Element |
String: DOM ID identifying the target element Element: Element reference to the target element. |
eventType | String | String identifier for the event type |
callback | Function | Function called when the event occurs |
onCapture | Boolean |
True to listen during the capture phase; False to listen during bubbling (optional) |
0 Comments