mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Update ranges tracker.
This commit is contained in:
parent
8aee0edfe8
commit
658e70a772
1 changed files with 10 additions and 7 deletions
|
@ -108,13 +108,16 @@ load = () ->
|
||||||
for change_id in change_to_remove_ids
|
for change_id in change_to_remove_ids
|
||||||
remove_change_id[change_id] = true
|
remove_change_id[change_id] = true
|
||||||
|
|
||||||
while (i--)
|
remaining_changes = []
|
||||||
if remove_change_id[@changes[i].id]
|
|
||||||
delete remove_change_id[@changes[i].id]
|
for change in @changes
|
||||||
removed_change = @changes.splice(i, 1)[0]
|
if remove_change_id[change.id]
|
||||||
@_markAsDirty removed_change, "change", "removed"
|
delete remove_change_id[change.id]
|
||||||
if Object.keys(remove_change_id).length == 0
|
@_markAsDirty change, "change", "removed"
|
||||||
break
|
else
|
||||||
|
remaining_changes.push change
|
||||||
|
|
||||||
|
@changes = remaining_changes
|
||||||
|
|
||||||
validate: (text) ->
|
validate: (text) ->
|
||||||
for change in @changes
|
for change in @changes
|
||||||
|
|
Loading…
Reference in a new issue