Operation which is doing nothing ("empty operation", "do-nothing operation", "noop"). This is an operation, which when executed does not change the tree model. It still has some parameters defined for transformation purposes.
In most cases this operation is a result of transforming operations. When transformation returns
NoOperation it means that changes done by the transformed operation
have already been applied.
baseVersion : Number
Batch to which the operation is added or
nullif the operation is not added to any batch yet.
isDocumentOperation : Boolean
Defines whether operation is executed on attached or detached items.
type : String
className : String
Name of the operation class used for serialization.
constructor( baseVersion )
Base operation constructor.
baseVersion : Number | null
versionon which operation can be applied or
nullif the operation operates on detached (non-document) tree.
Creates and returns an operation that has the same parameters as this operation.
Clone of this operation.
toJSON() → Object
Custom toJSON method to solve child-parent circular dependencies.
Clone of this object with the operation property replaced with string.
Executes the operation - modifications described by the operation properties will be applied to the model tree.
Checks whether the operation's parameters are correct and the operation can be correctly executed. Throws an error if operation is not valid.