MCPcopy Index your code
hub / github.com/angular/angular / finishLeaveAnimations

Function finishLeaveAnimations

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

Source from the content-addressed store, hash-verified

2576
2577 // Helper to complete the leave animation for all leaving menu elements
2578 const finishLeaveAnimations = () => {
2579 tickAnimationFrames(1);
2580 document.querySelectorAll('.example-menu.close').forEach((el) => {
2581 el.dispatchEvent(new AnimationEvent('animationend', {animationName: 'open'}));
2582 });
2583 tick();
2584 };
2585
2586 // Simulate rapid clicking with CD between each toggle
2587 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…