dispatch
Create and dispatch a configured event on the target.
dispatch( target, eventData [, bubbles ][, cancelable ] )
Parameters
- target
{DomEventTarget}
:The object to which to add the listener.
- eventData
{Object|String}
:The data to be assigned to the event. If it is a string, that will be the event type.
- bubbles
{Boolean}
:Whether the event should bubble; defaults to true.
- cancelable
{Boolean}
:Whether the event can be cancelled; defaults to false.
Returns
{Boolean}
:
notCancelled Whether the event dispatched without being cancelled.