trigger
Trigger an event to be added to the current batch.
can.batch.trigger(item, event [, args])
Parameters
-
item
{can.Map}
the target of the event
-
event
{String | Object}
the type of event, or an event object with a type given
-
args
{Array}
Optionalthe 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.