This commit is contained in:
nightwing 2012-04-26 19:47:38 +04:00
commit b51d0e763c

View file

@ -1273,14 +1273,14 @@ var Editor = function(renderer, session) {
this.$blockScrolling++; this.$blockScrolling++;
this.session.getUndoManager().undo(); this.session.getUndoManager().undo();
this.$blockScrolling--; this.$blockScrolling--;
renderer.scrollCursorIntoView(null, 0.5); this.renderer.scrollCursorIntoView(null, 0.5);
}; };
this.redo = function() { this.redo = function() {
this.$blockScrolling++; this.$blockScrolling++;
this.session.getUndoManager().redo(); this.session.getUndoManager().redo();
this.$blockScrolling--; this.$blockScrolling--;
renderer.scrollCursorIntoView(null, 0.5); this.renderer.scrollCursorIntoView(null, 0.5);
}; };
this.destroy = function() { this.destroy = function() {