Update ChangesTracker to handle delete edge case

This commit is contained in:
James Allen 2016-11-08 17:57:23 +00:00
parent f68c615f61
commit cd494f7866

View file

@ -277,7 +277,11 @@ define [
for change in remove_changes
@_removeChange change
op.d = @_applyOpModifications(op.d, op_modifications)
# Copy rather than modify because we still need to apply it to comments
op = {
p: op.p
d: @_applyOpModifications(op.d, op_modifications)
}
if @track_changes and op.d.length > 0
@_addOp op, metadata
else