example-d3/webworker.js
/** Returns the next non-descendant node in document order.
   * This is the first node in following::node(), if node is the context.
   */
Returns the next non-descendant node in document order.
This is the first node in following::node(), if node is the context.
Returns the next non - descendant node in document order . This is the first node in following :: node () if node is the context .
function followingNonDescendantNode(node) {
    if (node.ownerElement) {
      if (node.ownerElement.firstChild)
        return node.ownerElement.firstChild;
      node = node.ownerElement;
    }
    do {
      if (node.nextSibling) return node.nextSibling;
    } while (node = node.parentNode);
    return null;
  }
function followingNonDescendantNode ( node ) { if ( node . ownerElement ) { if ( node . ownerElement . firstChild ) return node . ownerElement . firstChild ; node = node . ownerElement ; } do { if ( node . nextSibling ) return node . nextSibling ; } while ( node = node . parentNode ) ; return null ; }
Returns the next non-descendant node in document order.
Returns the next non - descendant node in document order .