summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/rectangles/util/undostack.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-11-05 18:13:59 -0500
committerJules Laplace <jules@okfoc.us>2014-11-05 18:13:59 -0500
commit22c4fd94cd4b3f5f881f0ad91597b7c208e89eff (patch)
tree910f9273c2de0c49b77e411b1c0a6cf5efd8c108 /public/assets/javascripts/rectangles/util/undostack.js
parent64748a6d55f1e4d08270367767b631b724833b19 (diff)
parent69cf6a5005dcd0e7fcebcc1db9bd290b5fb63ed1 (diff)
merge
Diffstat (limited to 'public/assets/javascripts/rectangles/util/undostack.js')
-rw-r--r--public/assets/javascripts/rectangles/util/undostack.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/assets/javascripts/rectangles/util/undostack.js b/public/assets/javascripts/rectangles/util/undostack.js
index 959e3d1..040a4eb 100644
--- a/public/assets/javascripts/rectangles/util/undostack.js
+++ b/public/assets/javascripts/rectangles/util/undostack.js
@@ -10,6 +10,7 @@
this.pointer++
this.stack[this.pointer] = action
this.purge()
+ this.debug && console.log("push", action.type)
}
UndoStack.prototype.purge = function(){
if (this.stack.length-1 == this.pointer) return