fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: adding/clearing node widgets corrupted widgets on all children nodes
[fnpeditor.git]
/
modules
/
documentCanvas
/
commands.js
diff --git
a/modules/documentCanvas/commands.js
b/modules/documentCanvas/commands.js
index
738ab76
..
955ba48
100644
(file)
--- a/
modules/documentCanvas/commands.js
+++ b/
modules/documentCanvas/commands.js
@@
-107,6
+107,9
@@
commands.register('newNodeRequested', function(canvas, params) {
});
}
}
});
}
}
+ } else if(canvas.getCurrentNodeElement()) {
+ var el = canvas.getCurrentNodeElement().wrapWithNodeElement({tag: params.wlxmlTag, klass: params.wlxmlClass});
+ canvas.setCurrentElement(el);
}
}