dispatch
obj.dispatch( event, args )
Dispatches/triggers a basic event on an object.
Parameters
-
event
{String | Object}
The event to dispatch
-
args
{Array}
OptionalAdditional arguments to pass to event handlers
Returns
{Object}
event The resulting event object
can.event.dispatch.call( obj, event, args )
This syntax can be used for objects that don't include the can.event
mixin.