smartxml: cleanup
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 19 Mar 2014 09:27:02 +0000 (10:27 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 28 Mar 2014 11:25:28 +0000 (12:25 +0100)
src/smartxml/smartxml.js

index 505ab85..426dce0 100644 (file)
@@ -498,8 +498,6 @@ $.extend(Document.prototype, Backbone.Events, {
                 function() {
                     if(this._transformationLevel === 1 && !this._undoInProgress) {
                         this._currentTransaction.pushTransformation(transformation);
                 function() {
                     if(this._transformationLevel === 1 && !this._undoInProgress) {
                         this._currentTransaction.pushTransformation(transformation);
-                    }
-                    if(!this._undoInProgress && this._transformationLevel === 1) {
                         this.redoStack = [];
                     }
                 }
                         this.redoStack = [];
                     }
                 }