Constructor
new ve.dm.TransactionProcessor.processors()
#
Processing methods.
Each method is specific to a type of action. Methods are called in the context of a transaction processor, so they work similar to normal methods on the object.
Methods
attribute(op)static
#
Execute an attribute operation.
This method is called within the context of a transaction processor instance.
This sets the attribute named op.key
on the element at this.cursor
to
, or unsets it if
op.to
. op.to
=== undefinedop.from
is not checked against the old value, but is used instead of
in reverse mode. So if op.to
op.from
is incorrect, the transaction will commit fine, but won't roll
back correctly.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
op |
Object | Operation object Properties:
|
replace(op)static
#
ve.dm
.TreeModifier)
retain(op)static
#
Execute a retain operation.
Called within the context of a transaction processor instance; moves the cursor by op.length
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
op |
Object | Operation object: Properties:
|