src/model/node.js
// Get an array of all nodes along a path.
Get an array of all nodes along a path.
Get an array of all nodes along a path .
pathNodes(path) {
    let nodes = []
    for (var i = 0, node = this;; i++) {
      nodes.push(node)
      if (i == path.length) break
      node = node.child(path[i])
    }
    return nodes
  }
pathNodes ( path ) { let nodes = [ ] for ( var i = 0 , node = this ; ; i ++ ) { nodes . push ( node ) if ( i == path . length ) break node = node . child ( path [ i ] ) } return nodes }
Get an array of all nodes along a path.
Get an array of all nodes along a path .