diff --git a/src/js/HuesEditor.js b/src/js/HuesEditor.js index 30bd479..5115313 100644 --- a/src/js/HuesEditor.js +++ b/src/js/HuesEditor.js @@ -380,7 +380,7 @@ HuesEditor.prototype.pushUndo = function(name, editor, oldText, newText) { this.undoBuffer.push({songVar: name, editor: editor, text: oldText}); while(this.undoBuffer.length > 50) { - this.undoBuffer.pop(); + this.undoBuffer.shift(); } this.updateUndoUI(); };