transform: function(Transformation, args) {
//console.log('transform');
var toret, transformation;
transform: function(Transformation, args) {
//console.log('transform');
var toret, transformation;
- toret = transformation.run();
- if(this._transformationLevel === 1) {
+ toret = transformation.run({beUndoable:this._transformationLevel === 1});
+ if(this._transformationLevel === 1 && !this._undoInProgress) {
this.undoStack.push(transformation);
}
this._transformationLevel--;
//console.log('clearing redo stack');
this.undoStack.push(transformation);
}
this._transformationLevel--;
//console.log('clearing redo stack');