Compare commits
3 Commits
v13.0.0-38
...
v13.0.0-39
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc1fe7957b | ||
|
|
9c471ea24d | ||
|
|
d9e76014f5 |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "yjs",
|
||||
"version": "13.0.0-38",
|
||||
"version": "13.0.0-39",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "yjs",
|
||||
"version": "13.0.0-38",
|
||||
"version": "13.0.0-39",
|
||||
"description": "A framework for real-time p2p shared editing on any data",
|
||||
"main": "./y.node.js",
|
||||
"browser": "./y.js",
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -76,7 +76,4 @@ export function afterTransactionSelectionFixer (y, transaction, remote) {
|
||||
focusOffset
|
||||
)
|
||||
}
|
||||
// delete, so the objects can be gc'd
|
||||
relativeSelection = null
|
||||
browserSelection = null
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
/**
|
||||
* yjs - A framework for real-time p2p shared editing on any data
|
||||
* @version v13.0.0-38
|
||||
* @version v13.0.0-39
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
@@ -2947,9 +2947,6 @@ function afterTransactionSelectionFixer (y, transaction, remote) {
|
||||
focusOffset
|
||||
);
|
||||
}
|
||||
// delete, so the objects can be gc'd
|
||||
relativeSelection = null;
|
||||
browserSelection = null;
|
||||
}
|
||||
|
||||
class YXmlEvent extends YEvent {
|
||||
@@ -3954,7 +3951,9 @@ 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') {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user