Don't clear entries when switching files

This commit is contained in:
James Allen 2016-11-16 13:53:01 +00:00
parent 479ea83e36
commit 443d772866

View file

@ -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"