Rename UndoManager.perform -> pushOperation

I'm about to expand the types of operations so that some don't always have a `do` method. Therefore `perform` is a misnomer.
This commit is contained in:
David Graham & Nathan Sobo
2012-07-05 19:46:08 -06:00
parent 6fbd019b1d
commit c053be3394
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ class Buffer
oldRange = Range.fromObject(oldRange)
operation = new BufferChangeOperation({buffer: this, oldRange, newText})
if @undoManager
@undoManager.perform(operation)
@undoManager.pushOperation(operation)
else
operation.do()

View File

@@ -13,7 +13,7 @@ class UndoManager
@undoHistory = []
@redoHistory = []
perform: (operation) ->
pushOperation: (operation) ->
if @currentBatch
@currentBatch.push(operation)
else