($insertBefore)
| 308 | } |
| 309 | |
| 310 | function reorderTab($insertBefore) { |
| 311 | const previousRects = captureVisualPositions($parent); |
| 312 | |
| 313 | if ($insertBefore) { |
| 314 | $parent.insertBefore($tab, $insertBefore); |
| 315 | } else { |
| 316 | $parent.appendChild($tab); |
| 317 | } |
| 318 | |
| 319 | animateTabReorder($parent, previousRects); |
| 320 | } |
| 321 | |
| 322 | /** |
| 323 | * Captures where each tab visually is right now (including mid-animation |
no test coverage detected