mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Update ranges tracker.
This commit is contained in:
parent
05d7d1b8c6
commit
ef7fa59257
1 changed files with 14 additions and 0 deletions
|
@ -96,6 +96,20 @@ load = () ->
|
||||||
break
|
break
|
||||||
return change
|
return change
|
||||||
|
|
||||||
|
getChanges: (change_ids) ->
|
||||||
|
changes_response = []
|
||||||
|
ids_map = {}
|
||||||
|
|
||||||
|
for change_id in change_ids
|
||||||
|
ids_map[change_id] = true
|
||||||
|
|
||||||
|
for change in @changes
|
||||||
|
if ids_map[change.id]
|
||||||
|
delete ids_map[change.id]
|
||||||
|
changes_response.push change
|
||||||
|
|
||||||
|
return changes_response
|
||||||
|
|
||||||
removeChangeId: (change_id) ->
|
removeChangeId: (change_id) ->
|
||||||
change = @getChange(change_id)
|
change = @getChange(change_id)
|
||||||
return if !change?
|
return if !change?
|
||||||
|
|
Loading…
Reference in a new issue