toDelta doesnt create transaction - fixes #506

This commit is contained in:
Kevin Jahns
2023-03-11 09:13:27 +01:00
parent da8bacfc78
commit 227018f5c7
4 changed files with 23 additions and 15 deletions

View File

@@ -156,13 +156,15 @@ export class Doc extends Observable {
* that happened inside of the transaction are sent as one message to the
* other peers.
*
* @param {function(Transaction):void} f The function that should be executed as a transaction
* @template T
* @param {function(Transaction):T} f The function that should be executed as a transaction
* @param {any} [origin] Origin of who started the transaction. Will be stored on transaction.origin
* @return T
*
* @public
*/
transact (f, origin = null) {
transact(this, f, origin)
return transact(this, f, origin)
}
/**