diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-03 16:59:45 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-03 16:59:45 -0500 |
| commit | a49023a991c62595fc5c449729be4cc313ff66a7 (patch) | |
| tree | 2e4d3bd4ce9f19fae1c3c6ce73133f24ef81fa8f /public/assets/javascripts/rectangles/util/undostack.js | |
| parent | 16e4733522018477062abd8d60837c2bd69a93cb (diff) | |
fix undo scenery create/destroy
Diffstat (limited to 'public/assets/javascripts/rectangles/util/undostack.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/util/undostack.js | 1 |
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 |
