MCPcopy
hub / github.com/angular/angular / cleanupEnterClassData

Function cleanupEnterClassData

packages/core/src/animation/utils.ts:92–101  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

90 * Helper function to cleanup enterClassMap data safely
91 */
92export function cleanupEnterClassData(element: HTMLElement): void {
93 const elementData = enterClassMap.get(element);
94 if (elementData) {
95 for (const fn of elementData.cleanupFns) {
96 fn();
97 }
98 enterClassMap.delete(element);
99 }
100 longestAnimations.delete(element);
101}
102
103export const noOpAnimationComplete = () => {};
104

Callers 3

runEnterAnimationFunction · 0.90
enterAnimationEndFunction · 0.90

Calls 3

getMethod · 0.65
fnFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…