From 9d4d1acf2d6ea38a0afa43b4d5ea3e93a662925c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 29 Jun 2016 21:58:14 +0100 Subject: [PATCH] Strip tab node definition when exporting --- editor/js/nodes.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/editor/js/nodes.js b/editor/js/nodes.js index 80b93a87f..108922c70 100644 --- a/editor/js/nodes.js +++ b/editor/js/nodes.js @@ -1,5 +1,5 @@ /** - * Copyright 2013, 2015 IBM Corp. + * Copyright 2013, 2016 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -381,6 +381,17 @@ RED.nodes = (function() { return nns; } + function convertWorkspace(n) { + var node = {}; + node.id = n.id; + node.type = n.type; + for (var d in n._def.defaults) { + if (n._def.defaults.hasOwnProperty(d)) { + node[d] = n[d]; + } + } + return node; + } /** * Converts a node to an exportable JSON Object **/ @@ -531,7 +542,7 @@ RED.nodes = (function() { var i; for (i=0;i