Insert bug detected (because of references)
This commit is contained in:
parent
5417ffb999
commit
757bb118ce
@ -508,13 +508,15 @@ module.exports = ()->
|
|||||||
_encode: (json = {})->
|
_encode: (json = {})->
|
||||||
json.prev = @prev_cl.getUid()
|
json.prev = @prev_cl.getUid()
|
||||||
json.next = @next_cl.getUid()
|
json.next = @next_cl.getUid()
|
||||||
json.parent = @parent.getUid()
|
|
||||||
|
|
||||||
if @origin.type is "Delimiter"
|
if @origin.type is "Delimiter"
|
||||||
json.origin = "Delimiter"
|
json.origin = "Delimiter"
|
||||||
else if @origin isnt @prev_cl
|
else if @origin isnt @prev_cl
|
||||||
json.origin = @origin.getUid()
|
json.origin = @origin.getUid()
|
||||||
|
|
||||||
|
# if not (json.prev? and json.next?)
|
||||||
|
json.parent = @parent.getUid()
|
||||||
|
|
||||||
if @content?.getUid?
|
if @content?.getUid?
|
||||||
json['content'] = @content.getUid()
|
json['content'] = @content.getUid()
|
||||||
else
|
else
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://dadamonad.github.io/yjs/",
|
"homepage": "https://dadamonad.github.io/yjs/",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"chai": "^2.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"codo": "^2.0.9",
|
"codo": "^2.0.9",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user