Reset the $redoStack of the undoManager once a delta is executed. Add Range.setStart/setEnd.

This commit is contained in:
Julian Viereck 2011-04-29 12:15:19 +02:00
commit 86a0e98c36
2 changed files with 21 additions and 0 deletions

View file

@ -49,6 +49,7 @@ var UndoManager = function() {
var deltas = options.args[0];
this.$doc = options.args[1];
this.$undoStack.push(deltas);
this.$redoStack = [];
};
this.undo = function() {