MCPcopy
hub / github.com/Splidejs/splide / destroy

Function destroy

src/js/components/Elements/Elements.ts:147–155  ·  view source on GitHub ↗

* Destroys the component. * * @param completely - Whether to destroy the component completely or not.

( completely?: boolean )

Source from the content-addressed store, hash-verified

145 * @param completely - Whether to destroy the component completely or not.
146 */
147 function destroy( completely?: boolean ): void {
148 const attrs = ALL_ATTRIBUTES.concat( 'style' );
149
150 empty( slides );
151 removeClass( root, rootClasses );
152 removeClass( track, trackClasses );
153 removeAttribute( [ track, list ], attrs );
154 removeAttribute( root, completely ? attrs : [ 'style', ARIA_ROLEDESCRIPTION ] );
155 }
156
157 /**
158 * Updates the status of elements.

Callers

nothing calls this directly

Calls 3

emptyFunction · 0.90
removeClassFunction · 0.90
removeAttributeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…