fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip: extracting core cont'd - seems to be working
[fnpeditor.git]
/
src
/
smartxml
/
transformations.js
diff --git
a/src/smartxml/transformations.js
b/src/smartxml/transformations.js
index
5f0756c
..
a78c9c9
100644
(file)
--- a/
src/smartxml/transformations.js
+++ b/
src/smartxml/transformations.js
@@
-43,11
+43,11
@@
toret.createGenericTransformation = function(desc, name) {
// potem spr na dotychczasowych undo/redo tests;
this.args.forEach(function(arg, idx, args) {
// potem spr na dotychczasowych undo/redo tests;
this.args.forEach(function(arg, idx, args) {
- if(arg.nodeType) { // ~
+ if(arg
&& arg
.nodeType) { // ~
var path = arg.getPath();
Object.defineProperty(args, idx, {
get: function() {
var path = arg.getPath();
Object.defineProperty(args, idx, {
get: function() {
- if(transformation.hasRun) {
+ if(transformation.hasRun
&& path
) {
return transformation.document.getNodeByPath(path);
} else {
return arg;
return transformation.document.getNodeByPath(path);
} else {
return arg;