dundas.controls.Transaction Class

 

Inheritance Hierarchy

 
Class
   dundas.EventDisposable
      dundas.controls.Transaction
         dundas.controls.CanvasViewModelTransaction
 

Constructors

 
  Name Description
init Create a new instance of this class.
 
 

Properties

 
  Name Description
isDisposed Gets a value indicating whether this instance has been disposed. Inherited from dundas.EventDisposable.
remainingCommits Number of remaining enroll before automatically running.
uiCache Gets the UI cache table Inherited from dundas.EventDisposable.
 
 

Methods

 
  Name Description
bind Bind an event to this class object. Inherited from dundas.EventDisposable.
dispose Dispose of this transaction. Inherited from dundas.EventDisposable.
endTransaction End the transaction and run all enrolled functions, and dispose this transaction.
enroll Enroll a function into the transaction. If totally number of enrolled functions has reached expectedCommits, automatically run all enrolled functions.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.
raiseBindEvent Fire the event specified with eventName, or subscribe a handler. Inherited from dundas.EventDisposable.
subscribe Subscribe or unsubscribe an event handler for an event. Inherited from dundas.EventDisposable.
subscribeDisposed Subscribe to the disposed event. Inherited from dundas.EventDisposable.
subscribeOnce Subscribe a one time event handler for an event. Inherited from dundas.EventDisposable.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
trigger Raise an event. Inherited from dundas.EventDisposable.
unbind Unsubscribe an event. if handler is specified, unsubscribe that handler. if no parameters are specified, unbind everything. Inherited from dundas.EventDisposable.
unbindAll unsubscribe all events. Inherited from dundas.EventDisposable.