Insert bug detected (because of references)

This commit is contained in:
Kevin Jahns 2015-04-16 02:31:07 +02:00
parent 5417ffb999
commit 757bb118ce
2 changed files with 4 additions and 1 deletions

View File

@ -508,13 +508,15 @@ module.exports = ()->
_encode: (json = {})->
json.prev = @prev_cl.getUid()
json.next = @next_cl.getUid()
json.parent = @parent.getUid()
if @origin.type is "Delimiter"
json.origin = "Delimiter"
else if @origin isnt @prev_cl
json.origin = @origin.getUid()
# if not (json.prev? and json.next?)
json.parent = @parent.getUid()
if @content?.getUid?
json['content'] = @content.getUid()
else

View File

@ -26,6 +26,7 @@
},
"homepage": "https://dadamonad.github.io/yjs/",
"dependencies": {
"chai": "^2.2.0"
},
"devDependencies": {
"codo": "^2.0.9",