CanvasViewModelTransaction Constructor

Create a new instance of this class.
 

Parameters

options

Type: Object
Object containing the following options:
 expectedCommits  - [type:Number, default: -1] - expected number of enrolls before all enrolled functions are ran automatically. -1 = never run automatically.
 commitFailedFunc - [type:function, default: empty function] - ran when a enrolled function has failed.
 afterExecFunc - [type:function, default: empty function] - ran after all enrolled functions are ran.