diff options
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/undo-controller.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/controllers/undo-controller.js b/js/controllers/undo-controller.js index 01853593..19cfb6e6 100755 --- a/js/controllers/undo-controller.js +++ b/js/controllers/undo-controller.js | |||
@@ -71,7 +71,7 @@ exports.UndoController = Montage.create( Component, { | |||
71 | /** | 71 | /** |
72 | * Undo Queue | 72 | * Undo Queue |
73 | */ | 73 | */ |
74 | _undoQueue: { value: [], writable:true }, | 74 | _undoQueue: { value: []}, |
75 | 75 | ||
76 | undoQueue: { | 76 | undoQueue: { |
77 | get: function() { | 77 | get: function() { |
@@ -85,7 +85,7 @@ exports.UndoController = Montage.create( Component, { | |||
85 | /** | 85 | /** |
86 | * Redo Queue | 86 | * Redo Queue |
87 | */ | 87 | */ |
88 | _redoQueue: { value: [], enumerable: false, writable:true }, | 88 | _redoQueue: { value: [], enumerable: false}, |
89 | 89 | ||
90 | redoQueue: { | 90 | redoQueue: { |
91 | get: function() { | 91 | get: function() { |
@@ -212,8 +212,8 @@ exports.UndoController = Montage.create( Component, { | |||
212 | 212 | ||
213 | clearHistory:{ | 213 | clearHistory:{ |
214 | value: function(){ | 214 | value: function(){ |
215 | this.undoQueue.splice(0, this.undoQueue.length); | 215 | this.undoQueue.length = 0; |
216 | this.redoQueue.splice(0, this.redoQueue.length); | 216 | this.redoQueue.length = 0; |
217 | } | 217 | } |
218 | } | 218 | } |
219 | }); \ No newline at end of file | 219 | }); \ No newline at end of file |