(callback, that)
| 13043 | } |
| 13044 | |
| 13045 | function node_eachAfter(callback, that) { |
| 13046 | var node = this, nodes = [node], next = [], children, i, n, index = -1; |
| 13047 | while (node = nodes.pop()) { |
| 13048 | next.push(node); |
| 13049 | if (children = node.children) { |
| 13050 | for (i = 0, n = children.length; i < n; ++i) { |
| 13051 | nodes.push(children[i]); |
| 13052 | } |
| 13053 | } |
| 13054 | } |
| 13055 | while (node = next.pop()) { |
| 13056 | callback.call(that, node, ++index, this); |
| 13057 | } |
| 13058 | return this; |
| 13059 | } |
| 13060 | |
| 13061 | function node_find(callback, that) { |
| 13062 | let index = -1; |
nothing calls this directly
no outgoing calls
no test coverage detected