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

Method _updateStateBeforeShow

shepherd.js/src/tour.ts:440–448  ·  view source on GitHub ↗

* Before showing, hide the current step and if the tour is not * already active, call `this._setupActiveTour`. * @private

()

Source from the content-addressed store, hash-verified

438 * @private
439 */
440 _updateStateBeforeShow() {
441 if (this.currentStep) {
442 this.currentStep.hide();
443 }
444
445 if (!this.isActive()) {
446 this._setupActiveTour();
447 }
448 }
449
450 /**
451 * Sets this.id to a provided tourName and id or `${tourName}--${uuid}`

Callers 1

showMethod · 0.95

Calls 3

isActiveMethod · 0.95
_setupActiveTourMethod · 0.95
hideMethod · 0.45

Tested by

no test coverage detected