• function

triggerBatch can.Observe.triggerBatch

 

Trigger an event to be added to the current batch.

can.Observe.triggerBatch(item, event [, args])

Parameters

  1. item {can.Observe}

    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 triggerBatch adds an event to the batch. If events are not currently being batched, the event is triggered immediately.