Copy/clone config nodes properly on import/export

This commit is contained in:
Nick O'Leary
2015-07-08 22:12:52 +01:00
parent f70e9ea076
commit fde9d40098
7 changed files with 82 additions and 18 deletions

View File

@@ -518,7 +518,8 @@ RED.editor = (function() {
for (var d in definition.defaults) {
if (definition.defaults.hasOwnProperty(d)) {
if (definition.defaults[d].type) {
if (definition.defaults[d].exclusive) {
var configTypeDef = RED.nodes.getType(definition.defaults[d].type);
if (configTypeDef.exclusive) {
prepareConfigNodeButton(node,d,definition.defaults[d].type);
} else {
prepareConfigNodeSelect(node,d,definition.defaults[d].type);