JSFiddle - React, Tailwind, and code Playground

by pierian_design

JavaScript

var Wizard = function (sId) {

    this._setStepProgress(sId);
    console.log(this);

};

Wizard.prototype._setStepProgress = function (_stepId) {

    if (_stepId) {
      this.a = 1;
    } else {
      this.a = 0;
    }

};

var init = function () {

  	this.wizard = new Wizard('adx-wizard');

};

init();