Remove dead code, backend does not send single change events anymore.
This commit is contained in:
@@ -75,14 +75,6 @@ define [
|
|||||||
$timeout () ->
|
$timeout () ->
|
||||||
$scope.$broadcast "review-panel:layout"
|
$scope.$broadcast "review-panel:layout"
|
||||||
|
|
||||||
ide.socket.on "accept-change", (doc_id, change_id) ->
|
|
||||||
if doc_id != $scope.editor.open_doc_id
|
|
||||||
getChangeTracker(doc_id).removeChangeId(change_id)
|
|
||||||
else
|
|
||||||
$scope.$broadcast "changes:accept", [ change_id ]
|
|
||||||
updateEntries(doc_id)
|
|
||||||
$scope.$apply () ->
|
|
||||||
|
|
||||||
ide.socket.on "accept-changes", (doc_id, change_ids) ->
|
ide.socket.on "accept-changes", (doc_id, change_ids) ->
|
||||||
if doc_id != $scope.editor.open_doc_id
|
if doc_id != $scope.editor.open_doc_id
|
||||||
getChangeTracker(doc_id).removeChangeIds(change_ids)
|
getChangeTracker(doc_id).removeChangeIds(change_ids)
|
||||||
|
|||||||
Reference in New Issue
Block a user