Sycn track changes based on doc state, not editor state

This commit is contained in:
James Allen 2017-01-27 17:12:17 +01:00
parent ff7c5a0954
commit d9b774bb9b
2 changed files with 4 additions and 1 deletions

View file

@ -84,6 +84,9 @@ define [
setTrackingChanges: (track_changes) -> setTrackingChanges: (track_changes) ->
@doc.track_changes = track_changes @doc.track_changes = track_changes
getTrackingChanges: () ->
!!@doc.track_changes
setTrackChangesIdSeeds: (id_seeds) -> setTrackChangesIdSeeds: (id_seeds) ->
@doc.track_changes_id_seeds = id_seeds @doc.track_changes_id_seeds = id_seeds

View file

@ -162,7 +162,7 @@ define [
@_syncTimeout = null @_syncTimeout = null
want = @$scope.editor.wantTrackChanges want = @$scope.editor.wantTrackChanges
have = @$scope.editor.trackChanges have = doc.getTrackingChanges()
if want == have if want == have
return return