MCPcopy Create free account
hub / github.com/angular/angular / finishLeaveAnimations

Function finishLeaveAnimations

packages/core/test/acceptance/animation_spec.ts:2640–2646  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2638
2639 // Helper to complete the leave animation for all leaving menu elements
2640 const finishLeaveAnimations = () => {
2641 tickAnimationFrames(1);
2642 document.querySelectorAll('.example-menu.close').forEach((el) => {
2643 el.dispatchEvent(new AnimationEvent('animationend', {animationName: 'open'}));
2644 });
2645 tick();
2646 };
2647
2648 // Simulate rapid clicking with CD between each toggle
2649 for (let i = 0; i < 20; i++) {

Callers 1

animation_spec.tsFile · 0.85

Calls 4

tickAnimationFramesFunction · 0.90
tickFunction · 0.90
forEachMethod · 0.45
dispatchEventMethod · 0.45

Tested by

no test coverage detected