From ed7b68169e70b08a3a3972d89983a363e921b337 Mon Sep 17 00:00:00 2001 From: James Allen Date: Fri, 11 May 2018 17:05:39 +0100 Subject: [PATCH] Revert accidental dev changes to UndoManager --- .../directives/aceEditor/undo/UndoManager.coffee | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee index 918413d609..1f53fffe52 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee @@ -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