MCPcopy
hub / github.com/shipshapecode/shepherd / destroy

Method destroy

shepherd.js/src/step.ts:430–433  ·  view source on GitHub ↗

* Remove the step, delete the step's element, and destroy the FloatingUI instance for the step. * Triggers `destroy` event

()

Source from the content-addressed store, hash-verified

428 * Triggers `destroy` event
429 */
430 destroy() {
431 this._teardownElements();
432 this.trigger('destroy');
433 }
434
435 /**
436 * Internal cleanup that tears down the tooltip, component, and DOM element

Callers 6

_setOptionsMethod · 0.95
_setupElementsMethod · 0.95
step.spec.jsFile · 0.80
removeStepMethod · 0.80
_doneMethod · 0.80

Calls 2

_teardownElementsMethod · 0.95
triggerMethod · 0.80

Tested by

no test coverage detected