dispatch

  • function
 

obj.dispatch( event, args )

Dispatches/triggers a basic event on an object.

Parameters

  1. event {String | Object}

    The event to dispatch

  2. args {Array}Optional

    Additional 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.