Skip to content

Commit

Permalink
update jetsync lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Sep 20, 2012
1 parent 44ee15b commit bf0288f
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 121 deletions.
2 changes: 1 addition & 1 deletion demo/scripts/stypi/ot/jetstate.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class JetState
authorId = if delta.attributes? then delta.attributes.authorId else 1
if JetDelta.isInsert(delta)
insertFn.call(context || insertFn, index + offset, delta.text, authorId)
offset += delta.length
offset += delta.length()
else if JetDelta.isRetain(delta)
console.assert(delta.start >= index, "Somehow delta.start became smaller than index")
if delta.start > index
Expand Down
Loading

0 comments on commit bf0288f

Please sign in to comment.