fix remaining cursor relocation issues

This commit is contained in:
Kevin Jahns 2017-12-05 17:05:12 -08:00
parent 4091b7d004
commit d9e76014f5
2 changed files with 3 additions and 4 deletions

View File

@ -254,7 +254,9 @@ export default class YXmlFragment extends YArray {
})
// Apply Y.Xml events to dom
this.observeDeep(events => {
reflectChangesOnDom.call(this, events, _document)
this._mutualExclude(() => {
reflectChangesOnDom.call(this, events, _document)
})
})
// Apply Dom changes on Y.Xml
if (typeof MutationObserver !== 'undefined') {

View File

@ -76,7 +76,4 @@ export function afterTransactionSelectionFixer (y, transaction, remote) {
focusOffset
)
}
// delete, so the objects can be gc'd
relativeSelection = null
browserSelection = null
}