Classes
Components
Modules
TransactionDocument
Class defined in model/TransactionDocument.js#30 inherits from
A Document instance that is used during transaction.
During editing a TransactionDocument is kept up-to-date with the real one. Whenever a transaction is started on the document, a TransactionDocument is used to record changes, which are applied en-bloc when the transaction is saved.
Example
To start a transaction run
doc.transaction(function(tx) {
// use tx to record changes
})
new TransactionDocument()
Constructor defined in model/TransactionDocument.js#35
this.cancel()
Method defined in model/TransactionDocument.js#108
Cancels the current transaction, discarding all changes recorded so far.