fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smartxml: fix - do not clear redo stack if we are just performing undo operation
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
d722c20
..
eb97ea9
100644
(file)
--- a/
src/smartxml/smartxml.js
+++ b/
src/smartxml/smartxml.js
@@
-436,7
+436,9
@@
$.extend(Document.prototype, Backbone.Events, {
}
this._transformationLevel--;
//console.log('clearing redo stack');
- this.redoStack = [];
+ if(!this._undoInProgress) {
+ this.redoStack = [];
+ }
return toret;
} else {
throw new Error('Transformation ' + transformation + ' doesn\'t exist!');