y-prosemirror
Advanced tools
Comparing version 1.0.12 to 1.0.13
{ | ||
"name": "y-prosemirror", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Prosemirror bindings for Yjs", | ||
@@ -5,0 +5,0 @@ "main": "./dist/y-prosemirror.cjs", |
@@ -536,2 +536,4 @@ /** | ||
const isObject = (val) => typeof val === 'object' && val !== null | ||
const equalAttrs = (pattrs, yattrs) => { | ||
@@ -544,3 +546,3 @@ const keys = Object.keys(pattrs).filter(key => pattrs[key] !== null) | ||
const r = yattrs[key] | ||
eq = key === 'ychange' || l === r || (typeof l === 'object' && typeof r === 'object' && equalAttrs(l, r)) | ||
eq = key === 'ychange' || l === r || (isObject(l) && isObject(r) && equalAttrs(l, r)) | ||
} | ||
@@ -547,0 +549,0 @@ return eq |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3993498
38362