(clearStyleSheets?: boolean)
| 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 |
nothing calls this directly
no test coverage detected