dirty counter bug fixed

This commit is contained in:
Joonsoo Jeon 2013-05-09 16:12:34 +09:00
commit f7a4338ae0

View file

@ -88,9 +88,9 @@ var UndoManager = function() {
undoSelectionRange = undoSelectionRange =
this.$doc.undoChanges(deltas, dontSelect); this.$doc.undoChanges(deltas, dontSelect);
this.$redoStack.push(deltas); this.$redoStack.push(deltas);
this.dirtyCounter--;
} }
this.dirtyCounter--;
return undoSelectionRange; return undoSelectionRange;
}; };
@ -107,9 +107,9 @@ var UndoManager = function() {
redoSelectionRange = redoSelectionRange =
this.$doc.redoChanges(deltas, dontSelect); this.$doc.redoChanges(deltas, dontSelect);
this.$undoStack.push(deltas); this.$undoStack.push(deltas);
this.dirtyCounter++;
} }
this.dirtyCounter++;
return redoSelectionRange; return redoSelectionRange;
}; };