We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c57c061 commit 3839dd7Copy full SHA for 3839dd7
intro.js
@@ -1671,6 +1671,24 @@
1671
_goToStep.call(this, step);
1672
return this;
1673
},
1674
+ addStep: function(options) {
1675
+ if (!this._options.hasOwnProperty('steps')) {
1676
+ this._options.steps = [];
1677
+ }
1678
+
1679
+ if (!this._options.steps.indexOf(options) === -1) {
1680
+ this._options.steps.push(options);
1681
1682
1683
+ return this;
1684
+ },
1685
+ addSteps: function(steps) {
1686
+ if (!steps.hasOwnProperty('length')) return;
1687
1688
+ for(var index = 0; index < steps.length; index++) {
1689
+ this.addStep(steps[index]);
1690
1691
1692
nextStep: function() {
1693
_nextStep.call(this);
1694
0 commit comments