X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/51b143ce745947ba7a0db2d8d7cf4b68f30c7078..7779d776e9256c0cdb8a3290e3a1fb62b761ff13:/src/smartxml/transformations.js diff --git a/src/smartxml/transformations.js b/src/smartxml/transformations.js index a2a9f48..4a8e5a8 100644 --- a/src/smartxml/transformations.js +++ b/src/smartxml/transformations.js @@ -79,6 +79,7 @@ toret.createGenericTransformation = function(desc, name) { undo: function() { if(desc.undo) { desc.undo.call(this.context, this); + this.runCount++; } else { this.document.getNodeByPath(this.changeRootPath).replaceWith(this.snapshot); }