unbind yxml immediately when deleted
This commit is contained in:
parent
5cf8d20cf6
commit
1dea8f394f
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user