X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/3c6c8fe1de117ec69a146ea18aedac5d8dc30691..f4828b331965f0eae8508750aea836d8aa81a8cd:/src/smartxml/transformations.js diff --git a/src/smartxml/transformations.js b/src/smartxml/transformations.js index 772cf75..eaa292c 100644 --- a/src/smartxml/transformations.js +++ b/src/smartxml/transformations.js @@ -12,12 +12,11 @@ var getTransDesc = function(desc, name) { if(!desc.impl) { throw new Error('Got transformation description without implementation.') } - desc.name = desc.name || name; return desc; }; toret.createGenericTransformation = function(desc, name) { - desc = getTransDesc(desc, name); + desc = getTransDesc(desc); var GenericTransformation = function(document, args) { this.args = args || {}; @@ -48,7 +47,7 @@ toret.createGenericTransformation = function(desc, name) { } }; _.extend(GenericTransformation.prototype, { - name: desc.name, + name: name, run: function() { var changeRoot; if(!desc.undo) {