(callback, that)
| 13030 | } |
| 13031 | |
| 13032 | function node_eachBefore(callback, that) { |
| 13033 | var node = this, nodes = [node], children, i, index = -1; |
| 13034 | while (node = nodes.pop()) { |
| 13035 | callback.call(that, node, ++index, this); |
| 13036 | if (children = node.children) { |
| 13037 | for (i = children.length - 1; i >= 0; --i) { |
| 13038 | nodes.push(children[i]); |
| 13039 | } |
| 13040 | } |
| 13041 | } |
| 13042 | return this; |
| 13043 | } |
| 13044 | |
| 13045 | function node_eachAfter(callback, that) { |
| 13046 | var node = this, nodes = [node], next = [], children, i, n, index = -1; |
nothing calls this directly
no outgoing calls
no test coverage detected