CanvasViewModelTransaction.enroll Method

Enroll a viewmodel into the transaction. If total number of enrolled viewmodel has reached expectedCommits, automatically run all enrolled functions.
 

Parameters

callback

Type: Function
A function to enroll.
doNotRaise

Type: boolean - May be null
(Optional) True to not raise event on viewmodel.