(fatherNode, node, position)
| 17 | } |
| 18 | |
| 19 | function insertNodeAt(fatherNode, node, position) { |
| 20 | const refNode = |
| 21 | position === 0 |
| 22 | ? fatherNode.children[0] |
| 23 | : fatherNode.children[position - 1].nextSibling; |
| 24 | fatherNode.insertBefore(node, refNode); |
| 25 | } |
| 26 | |
| 27 | function computeVmIndex(vnodes, element) { |
| 28 | return vnodes.map(elt => elt.elm).indexOf(element); |
no outgoing calls
no test coverage detected