MCPcopy
hub / github.com/vuejs/core / removeTransitionClass

Function removeTransitionClass

packages/runtime-dom/src/components/Transition.ts:329–338  ·  view source on GitHub ↗
(el: Element, cls: string)

Source from the content-addressed store, hash-verified

327}
328
329export 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
340function nextFrame(cb: () => void) {
341 requestAnimationFrame(() => {

Callers 5

setupFunction · 0.90
finishEnterFunction · 0.85
finishLeaveFunction · 0.85
makeEnterHookFunction · 0.85
onLeaveFunction · 0.85

Calls 2

forEachMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected