packages/ag-grid-docs/src/dist/aui/js/aui.js
// It invokes the callback only for the children, not the passed node and the second parameter to the callback is the parent node
It invokes the callback only for the children, not the passed node and the second parameter to the callback is the parent node
It invokes the callback only for the children not the passed node and the second parameter to the callback is the parent node
function walkTree(node, cb) {
      var childNodes = node.childNodes;
      if (!childNodes) {
        return;
      }
      var childNodesLen = childNodes.length;
      for (var a = 0; a < childNodesLen; a++) {
        var childNode = childNodes[a];
        cb(childNode, node);
        walkTree(childNode, cb);
      }
    }
function walkTree ( node , cb ) { var childNodes = node . childNodes ; if ( ! childNodes ) { return ; } var childNodesLen = childNodes . length ; for ( var a = 0 ; a < childNodesLen ; a ++ ) { var childNode = childNodes [ a ] ; cb ( childNode , node ) ; walkTree ( childNode , cb ) ; } }
It invokes the callback only for the children, not the passed node and the second parameter to the callback is the parent node
It invokes the callback only for the children not the passed node and the second parameter to the callback is the parent node