MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / destroy

Function destroy

core/src/utils/animation/animation.ts:93–110  ·  view source on GitHub ↗
(clearStyleSheets?: boolean)

Source from the content-addressed store, hash-verified

91 };
92
93 const destroy = (clearStyleSheets?: boolean) => {
94 childAnimations.forEach((childAnimation) => {
95 childAnimation.destroy(clearStyleSheets);
96 });
97
98 cleanUp(clearStyleSheets);
99
100 elements.length = 0;
101 childAnimations.length = 0;
102 _keyframes.length = 0;
103
104 clearOnFinish();
105
106 initialized = false;
107 shouldCalculateNumAnimations = true;
108
109 return ani;
110 };
111
112 /**
113 * Cancels any Web Animations, removes

Callers

nothing calls this directly

Calls 3

cleanUpFunction · 0.85
clearOnFinishFunction · 0.85
destroyMethod · 0.65

Tested by

no test coverage detected