MCPcopy Create free account
hub / github.com/danja/dogalog / goToStep

Method goToStep

src/tutorial/tutorialManager.js:81–87  ·  view source on GitHub ↗

* Skip to a specific step * @param {number} stepIndex

(stepIndex)

Source from the content-addressed store, hash-verified

79 * @param {number} stepIndex
80 */
81 goToStep(stepIndex) {
82 if (stepIndex >= 0) {
83 this.currentStep = stepIndex;
84 this.saveProgress();
85 this.emit('step', this.currentStep);
86 }
87 }
88
89 /**
90 * Complete the tutorial

Callers

nothing calls this directly

Calls 2

saveProgressMethod · 0.95
emitMethod · 0.95

Tested by

no test coverage detected