Class TKTransaction
A transaction allows to run a variety of transitions in sync, no matter in what function or JavaScript run loop
the transition itself was applied. Transactions can be nested, and a transaction is only truly commited when there
are no other open transactions. In other words, there must be as many calls to TKTransaction.begin
as there
are calls to TKTransaction.commit
before any transition in one of those transactions can be applied.
Defined in: Transaction.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
<static> |
TKTransaction.
defaults
The set of default properties that will be applied to any
TKTransition until the next call to TKTransaction.commit . |
Method Attributes | Method Name and Description |
---|---|
<static> |
TKTransaction.
begin ()
Begins a new transaction and makes it the current transaction.
|
<static> |
TKTransaction.
commit ()
Closes the current transaction.
|
Field Detail
<static>
{Object}
TKTransaction.defaults
The set of default properties that will be applied to any
TKTransition
until the next call to TKTransaction.commit
.
Any of the properties that can be applied to a TKTransition
can be applied to this object.
Method Detail
<static>
TKTransaction.begin()
Begins a new transaction and makes it the current transaction.
<static>
TKTransaction.commit()
Closes the current transaction.