mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-08 11:32:39 +00:00
Revert accidental dev changes to UndoManager
This commit is contained in:
parent
35dc518d05
commit
ed7b68169e
1 changed files with 2 additions and 8 deletions
|
@ -14,14 +14,9 @@ define [
|
|||
|
||||
@editor.on "changeSession", (e) =>
|
||||
@reset()
|
||||
# @session = e.session
|
||||
@session = e.session
|
||||
e.session.setUndoManager(@)
|
||||
|
||||
addSession: (session) ->
|
||||
@session = session
|
||||
|
||||
addSelection: () ->
|
||||
|
||||
showUndoConflictWarning: () ->
|
||||
@$scope.$apply () =>
|
||||
@$scope.undo.show_remote_warning = true
|
||||
|
@ -36,8 +31,7 @@ define [
|
|||
@undoStack = []
|
||||
@redoStack = []
|
||||
|
||||
add: (delta, allowMerge, session) ->
|
||||
return
|
||||
execute: (options) ->
|
||||
if @firstUpdate
|
||||
# The first update we receive is Ace setting the document, which we should
|
||||
# ignore
|
||||
|
|
Loading…
Reference in a new issue