rquery.js
function getComponentDescendants (root, component, onlyChildren, includeSelf) {
    var node = rquery_getDOMNode(component),
        descendants = [];

    if (onlyChildren) {
      descendants = node.children;
    } else {
      descendants = node.getElementsByTagName('*');
    }

    // convert to array
    descendants = _.toArray(descendants);

    if (includeSelf) {
      descendants.unshift(rquery_getDOMNode(component));
    }

    injectCompositeComponents(root, descendants);

    return descendants;
  }
function getComponentDescendants (root, component, onlyChildren, includeSelf) {
    var node = rquery_getDOMNode(component),
        descendants = [];

    if (onlyChildren) {
      descendants = node.children;
    } else {
      descendants = node.getElementsByTagName('*');
    }

    // convert to array
    descendants = _.toArray(descendants);

    if (includeSelf) {
      descendants.unshift(rquery_getDOMNode(component));
    }

    injectCompositeComponents(root, descendants);

    return descendants;
  }
Reduces the list of descendants to only DOM nodes. Then, it will splice in
the React components for any composite components.