fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moving wlxml object api transformations directly into .object properties name space
[fnpeditor.git]
/
src
/
smartxml
/
transformations.js
diff --git
a/src/smartxml/transformations.js
b/src/smartxml/transformations.js
index
772cf75
..
eaa292c
100644
(file)
--- 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.')
}
if(!desc.impl) {
throw new Error('Got transformation description without implementation.')
}
- desc.name = desc.name || name;
return desc;
};
toret.createGenericTransformation = function(desc, name) {
return desc;
};
toret.createGenericTransformation = function(desc, name) {
- desc = getTransDesc(desc
, name
);
+ desc = getTransDesc(desc);
var GenericTransformation = function(document, args) {
this.args = args || {};
var GenericTransformation = function(document, args) {
this.args = args || {};
@@
-48,7
+47,7
@@
toret.createGenericTransformation = function(desc, name) {
}
};
_.extend(GenericTransformation.prototype, {
}
};
_.extend(GenericTransformation.prototype, {
- name:
desc.
name,
+ name: name,
run: function() {
var changeRoot;
if(!desc.undo) {
run: function() {
var changeRoot;
if(!desc.undo) {