Skip to content

Commit 506b0c1

Browse files
authored
Merge pull request usablica#643 from nblackburn/add-step
Add step
2 parents 2a5566e + 3bf47f6 commit 506b0c1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

intro.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,24 @@
17031703
_goToStep.call(this, step);
17041704
return this;
17051705
},
1706+
addStep: function(options) {
1707+
if (!this._options.steps) {
1708+
this._options.steps = [];
1709+
}
1710+
1711+
this._options.steps.push(options);
1712+
1713+
return this;
1714+
},
1715+
addSteps: function(steps) {
1716+
if (!steps.length) return;
1717+
1718+
for(var index = 0; index < steps.length; index++) {
1719+
this.addStep(steps[index]);
1720+
}
1721+
1722+
return this;
1723+
},
17061724
nextStep: function() {
17071725
_nextStep.call(this);
17081726
return this;

0 commit comments

Comments
 (0)