mirror of
https://github.com/yjs/yjs.git
synced 2025-12-29 00:25:01 +01:00
unbind yxml immediately when deleted
This commit is contained in:
@@ -73,6 +73,10 @@ export default class YXmlFragment extends YArray {
|
||||
toString () {
|
||||
return this.map(xml => xml.toString()).join('')
|
||||
}
|
||||
_delete (y, createDelete) {
|
||||
this._unbindFromDom()
|
||||
super._delete(y, createDelete)
|
||||
}
|
||||
_unbindFromDom () {
|
||||
if (this._domObserver != null) {
|
||||
this._domObserver.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user