Similar to the element.fire() method of the Prototype JavaScript framework, except that the event type can be specified (instead of always dataavailable), and details are placed in the event object directly (instead of a memo subobject). If element is undefined, the new event will just be returned and not actually dispatched.
Parameter | Type | Description |
---|---|---|
element | Element | DOM element to dispatch the event on. |
name | String | Name of the event, visible in event.type. |
mojoDetails | String | Hash of custom event properties to be copied to the event object. |
optionalBubbles | Boolean | True to set the event propagation behavior to bubble. Defaults to True. |
optionalCancel | Boolean | True to allow the event's default action to be prevented via preventDefault(). Defaults to True. |
0 Comments