mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-11 18:50:56 +00:00
Don't clear entries when switching files
This commit is contained in:
parent
479ea83e36
commit
443d772866
1 changed files with 1 additions and 1 deletions
|
@ -8,6 +8,7 @@ define [
|
||||||
|
|
||||||
constructor: (@$scope, @editor, @element) ->
|
constructor: (@$scope, @editor, @element) ->
|
||||||
window.trackChangesManager ?= @
|
window.trackChangesManager ?= @
|
||||||
|
@$scope.reviewPanel.entries = {}
|
||||||
|
|
||||||
@$scope.$watch "changesTracker", (changesTracker) =>
|
@$scope.$watch "changesTracker", (changesTracker) =>
|
||||||
return if !changesTracker?
|
return if !changesTracker?
|
||||||
|
@ -84,7 +85,6 @@ define [
|
||||||
|
|
||||||
disconnectFromChangesTracker: () ->
|
disconnectFromChangesTracker: () ->
|
||||||
@changeIdToMarkerIdMap = {}
|
@changeIdToMarkerIdMap = {}
|
||||||
@$scope.reviewPanel.entries = {}
|
|
||||||
|
|
||||||
if @changesTracker?
|
if @changesTracker?
|
||||||
@changesTracker.off "insert:added"
|
@changesTracker.off "insert:added"
|
||||||
|
|
Loading…
Reference in a new issue