summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/rectangles/util
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-08-13 16:44:32 -0400
committerJules Laplace <jules@okfoc.us>2014-08-13 16:44:32 -0400
commited5751766079a62ce596dcc0abc1a211b5b633dc (patch)
tree1f4d2b2e8ceed87ffad34a34143a661da4022186 /public/assets/javascripts/rectangles/util
parentefbee2f77d9405d96c773ce8f909e420e8520c5c (diff)
parent90cb5b343f3d56372f9b43faf215ed80dd879fe1 (diff)
merge
Diffstat (limited to 'public/assets/javascripts/rectangles/util')
-rw-r--r--public/assets/javascripts/rectangles/util/undostack.js (renamed from public/assets/javascripts/rectangles/util/undo.js)4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/assets/javascripts/rectangles/util/undo.js b/public/assets/javascripts/rectangles/util/undostack.js
index dfc74dc..b93c79e 100644
--- a/public/assets/javascripts/rectangles/util/undo.js
+++ b/public/assets/javascripts/rectangles/util/undostack.js
@@ -19,7 +19,7 @@
if (this.pointer == -1) return false
var action = this.stack[this.pointer]
this.debug && console.log("undo", action.type)
- this.types[ action.type ].undo(action.prev)
+ this.types[ action.type ].undo(action.undo)
this.pointer--
return this.pointer > -1
}
@@ -28,7 +28,7 @@
this.pointer++
var action = this.stack[this.pointer]
this.debug && console.log("redo", action.type)
- this.types[ action.type ].redo(action.next)
+ this.types[ action.type ].redo(action.redo)
return this.pointer < this.stack.length-1
}
UndoStack.prototype.register = function(actionType){