Merge pull request #1418 from Joonsoo/master

Dirty check bug fixed
This commit is contained in:
Harutyun Amirjanyan 2013-05-10 11:43:26 -07:00
commit 8ed6eabc12

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;
};