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 || {};
}
};
_.extend(GenericTransformation.prototype, {
- name: desc.name,
+ name: name,
run: function() {
var changeRoot;
if(!desc.undo) {