unbind yxml immediately when deleted

This commit is contained in:
Kevin Jahns 2017-10-26 21:02:25 +02:00
parent 5cf8d20cf6
commit 1dea8f394f

View File

@ -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()