UNPKG

atom-user-support-helper

Version:
23 lines (18 loc) 466 B
'use babel' let Promise = null; let Disposable = null; let CompositeDisposable = null; export default class Tutorial { constructor(getNextStep, locationOfSkipButtion) { this.getNextStep = getNextStep this.locationOfSkipButtion = locationOfSkipButtion } start() { this.next(null) } next(step, wasSkipped) { const t = this.getNextStep(step, wasSkipped) const nextStep = t.step const isSkippable = t.isSkippable || false } }