atom-user-support-helper
Version:
A helper for user support features in Atom.io
23 lines (18 loc) • 466 B
JavaScript
'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
}
}