diff --git a/packages/exporter/src/js/exporter.js b/packages/exporter/src/js/exporter.js index edccf756f4..9e704298a8 100755 --- a/packages/exporter/src/js/exporter.js +++ b/packages/exporter/src/js/exporter.js @@ -952,21 +952,17 @@ * recurse down into the children to get to the raw data element * which is a row without children (a leaf). * @param {Node} aNode the tree node on the grid - * @returns {Array} an array of leaf nodes + * @returns {Array} an array with all child nodes from aNode */ getRowsFromNode: function(aNode) { - var rows = []; - for (var i = 0; i 0) { + for (var i = 0; i < aNode.children.length; i++) { + rows = rows.concat(this.getRowsFromNode(aNode.children[i])); + } } return rows; }, - /** * @ngdoc function * @name getDataSorted