Compare commits
6 Commits
v13.0.0-58
...
v13.0.0-60
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed963dca41 | ||
|
|
e56457a0ef | ||
|
|
ca13849828 | ||
|
|
92c2fbd6d3 | ||
|
|
65b8921f05 | ||
|
|
1ace7f4b73 |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "yjs",
|
"name": "yjs",
|
||||||
"version": "13.0.0-58",
|
"version": "13.0.0-60",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "yjs",
|
"name": "yjs",
|
||||||
"version": "13.0.0-58",
|
"version": "13.0.0-60",
|
||||||
"description": "A framework for real-time p2p shared editing on any data",
|
"description": "A framework for real-time p2p shared editing on any data",
|
||||||
"main": "./y.node.js",
|
"main": "./y.node.js",
|
||||||
"browser": "./y.js",
|
"browser": "./y.js",
|
||||||
@@ -71,8 +71,5 @@
|
|||||||
"rollup-watch": "^3.2.2",
|
"rollup-watch": "^3.2.2",
|
||||||
"standard": "^10.0.2",
|
"standard": "^10.0.2",
|
||||||
"tag-dist-files": "^0.1.6"
|
"tag-dist-files": "^0.1.6"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"debug": "^2.6.8"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,21 +90,20 @@ export default function domObserver (mutations, _document) {
|
|||||||
mutations.forEach(mutation => {
|
mutations.forEach(mutation => {
|
||||||
const dom = mutation.target
|
const dom = mutation.target
|
||||||
const yxml = this.domToType.get(dom)
|
const yxml = this.domToType.get(dom)
|
||||||
if (yxml === false || yxml === undefined || yxml.constructor === YXmlHook) {
|
if (yxml === undefined) { // In case yxml is undefined, we double check if we forgot to bind the dom
|
||||||
// dom element is filtered
|
let parent = dom
|
||||||
if (yxml === undefined) { // In case yxml is undefined, we double check if we forgot to bind the dom
|
let yParent
|
||||||
console.error('Yjs DomBinding: Reconstructing DomBinding, please report how to reproduce this.')
|
do {
|
||||||
let parent
|
parent = parent.parentNode
|
||||||
let yParent
|
yParent = this.domToType.get(parent)
|
||||||
do {
|
} while (yParent === undefined && parent !== null)
|
||||||
parent = dom.parentNode
|
if (yParent !== false && yParent !== undefined && yParent.constructor !== YXmlHook) {
|
||||||
yParent = this.domToType.get(parent)
|
diffChildren.add(parent)
|
||||||
} while (yParent === undefined)
|
|
||||||
if (yParent !== false && yParent !== undefined && yParent.constructor !== YXmlHook) {
|
|
||||||
diffChildren.add(parent)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
} else if (yxml === false || yxml.constructor === YXmlHook) {
|
||||||
|
// dom element is filtered / a dom hook
|
||||||
|
return
|
||||||
}
|
}
|
||||||
switch (mutation.type) {
|
switch (mutation.type) {
|
||||||
case 'characterData':
|
case 'characterData':
|
||||||
|
|||||||
1
y.node.js.map
Normal file
1
y.node.js.map
Normal file
File diff suppressed because one or more lines are too long
1
y.test.js.map
Normal file
1
y.test.js.map
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user