( tree, key, isOnce )
| 3531 | } |
| 3532 | |
| 3533 | function markStatic ( |
| 3534 | tree, |
| 3535 | key, |
| 3536 | isOnce |
| 3537 | ) { |
| 3538 | if (Array.isArray(tree)) { |
| 3539 | for (var i = 0; i < tree.length; i++) { |
| 3540 | if (tree[i] && typeof tree[i] !== 'string') { |
| 3541 | markStaticNode(tree[i], (key + "_" + i), isOnce); |
| 3542 | } |
| 3543 | } |
| 3544 | } else { |
| 3545 | markStaticNode(tree, key, isOnce); |
| 3546 | } |
| 3547 | } |
| 3548 | |
| 3549 | function markStaticNode (node, key, isOnce) { |
| 3550 | node.isStatic = true; |
no test coverage detected