trigger

  • function
 

Trigger an event to be added to the current batch.

can.batch.trigger(item, event [, args])

Parameters

  1. item {can.Map}

    the target of the event

  2. event {String | Object}

    the type of event, or an event object with a type given

    • type {String}
  3. args {Array}Optional

    the parameters to trigger the event with.

If events are currently being batched, calling can.batch.trigger adds an event to the batch. If events are not currently being batched, the event is triggered immediately.