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 =
this.$doc.undoChanges(deltas, dontSelect);
this.$redoStack.push(deltas);
this.dirtyCounter--;
}
this.dirtyCounter--;
return undoSelectionRange;
};
@ -107,9 +107,9 @@ var UndoManager = function() {
redoSelectionRange =
this.$doc.redoChanges(deltas, dontSelect);
this.$undoStack.push(deltas);
this.dirtyCounter++;
}
this.dirtyCounter++;
return redoSelectionRange;
};