fix initialization error

This commit is contained in:
James Allen 2016-11-16 14:00:29 +00:00
parent 443d772866
commit 56408728cd

View file

@ -8,8 +8,7 @@ define [
constructor: (@$scope, @editor, @element) ->
window.trackChangesManager ?= @
@$scope.reviewPanel.entries = {}
@$scope.$watch "changesTracker", (changesTracker) =>
return if !changesTracker?
@disconnectFromChangesTracker()