X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/3c6c8fe1de117ec69a146ea18aedac5d8dc30691..7a67ffc356936a4eec4243df03fab2ad1c66c9b9:/src/smartxml/transformations.js?ds=inline 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) {