From c053be3394cb8390d8cb93bb2255bd6f907f0c64 Mon Sep 17 00:00:00 2001 From: David Graham & Nathan Sobo Date: Thu, 5 Jul 2012 19:46:08 -0600 Subject: [PATCH] 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. --- src/app/buffer.coffee | 2 +- src/app/undo-manager.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/buffer.coffee b/src/app/buffer.coffee index 5614a0fda..a42f72608 100644 --- a/src/app/buffer.coffee +++ b/src/app/buffer.coffee @@ -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() diff --git a/src/app/undo-manager.coffee b/src/app/undo-manager.coffee index 5318614d0..47ae7b1d7 100644 --- a/src/app/undo-manager.coffee +++ b/src/app/undo-manager.coffee @@ -13,7 +13,7 @@ class UndoManager @undoHistory = [] @redoHistory = [] - perform: (operation) -> + pushOperation: (operation) -> if @currentBatch @currentBatch.push(operation) else