(item)
| 128 | } |
| 129 | |
| 130 | next(item) { |
| 131 | if (item) { |
| 132 | let parent = this.parent(item); |
| 133 | if (parent && parent.children.length > 0) { |
| 134 | let idx = parent.children.indexOf(item); |
| 135 | if (idx !== -1 && parent.children.length !== idx + 1) { |
| 136 | return parent.children[idx + 1]; |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | return null; |
| 141 | } |
| 142 | |
| 143 | prev(item) { |
| 144 | if (item) { |
no test coverage detected