stop
End an event batch.
can.batch.stop([force[, callStart]])
Parameters
-
force
=false{bool}Optionalwhether to stop batching events immediately
-
callStart
=false{bool}Optionalwhether to call
can.batch.startafter firing batched events
End an event batch.
=false
{bool}Optionalwhether to stop batching events immediately
=false
{bool}Optionalwhether to call can.batch.start after firing batched events
can.batch.stopmatches an earliercan.batch.startcall. Ifcan.batch.stophas been called as many times ascan.batch.start(or if force is true), all batched events will be fired and any callbacks passed tocan.batch.startsince the beginning of the batch will be called. If _force and callStart are both true, a new batch will be started when all the events and callbacks have been fired.See
can.batch.startfor examples ofcan.batch.startandcan.batch.stopin normal use.In this example, the batch is forceably ended in the
addPeoplefunction.