(el: Element, cls: string)
| 327 | } |
| 328 | |
| 329 | export function removeTransitionClass(el: Element, cls: string): void { |
| 330 | cls.split(/\s+/).forEach(c => c && el.classList.remove(c)) |
| 331 | const _vtc = (el as ElementWithTransition)[vtcKey] |
| 332 | if (_vtc) { |
| 333 | _vtc.delete(cls) |
| 334 | if (!_vtc!.size) { |
| 335 | ;(el as ElementWithTransition)[vtcKey] = undefined |
| 336 | } |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | function nextFrame(cb: () => void) { |
| 341 | requestAnimationFrame(() => { |
no test coverage detected