Create and dispatch a configured event on the target.
dispatch( target, eventData [, bubbles ][, cancelable ] )
The object on which to dispatch the event.
The data to be assigned to the event. If it is a string, that will be the event type.
Whether the event should bubble; defaults to true.
Whether the event can be cancelled; defaults to false.
notCancelled Whether the event dispatched without being cancelled.