Merge branch 'master' into 0.17

This commit is contained in:
Nick O'Leary
2017-06-26 10:18:42 +01:00
3 changed files with 13 additions and 8 deletions

View File

@@ -533,10 +533,10 @@ RED.nodes = (function() {
/**
* Converts the current node selection to an exportable JSON Object
**/
function createExportableNodeSet(set) {
function createExportableNodeSet(set, exportedSubflows, exportedConfigNodes) {
var nns = [];
var exportedConfigNodes = {};
var exportedSubflows = {};
exportedConfigNodes = exportedConfigNodes || {};
exportedSubflows = exportedSubflows || {};
for (var n=0;n<set.length;n++) {
var node = set[n];
if (node.type.substring(0,8) == "subflow:") {
@@ -550,7 +550,7 @@ RED.nodes = (function() {
subflowSet.push(n);
}
});
var exportableSubflow = createExportableNodeSet(subflowSet);
var exportableSubflow = createExportableNodeSet(subflowSet, exportedSubflows, exportedConfigNodes);
nns = exportableSubflow.concat(nns);
}
}