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

@@ -257,8 +257,7 @@ export class YXmlFragment extends AbstractType {
* @return {string} The string representation of all children.
*/
toString () {
// toString can result in many cleanup transactions. We wrap all cleanup transactions here to reduce the work
return transact(/** @type {Doc} */ (this.doc), () => typeListMap(this, xml => xml.toString()).join(''))
return typeListMap(this, xml => xml.toString()).join('')
}
/**