fix several y-xml bugs

This commit is contained in:
Kevin Jahns
2018-01-03 03:50:27 +01:00
parent 0ba97d78f8
commit 445dd3e0da
4 changed files with 23 additions and 13 deletions

View File

@@ -56,7 +56,7 @@ export default class YMap extends Type {
this._transact(y => {
const old = this._map.get(key) || null
if (old !== null) {
if (old instanceof ItemJSON && old._content[0] === value) {
if (old.constructor === ItemJSON && !old._deleted && old._content[0] === value) {
// Trying to overwrite with same value
// break here
return value