Skip to content

Commit 0e80ab7

Browse files
authored
Merge pull request usablica#1053 from vkrol/use-current-step-in-docs
Use currentStep() instead of _currentStep in docs
2 parents b2626ba + f5814fa commit 0e80ab7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/docs/intro/api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ If you want to prevent displaying the next / previous step, return `false` in `p
388388

389389
```javascript
390390
introJs().onbeforechange(function() {
391-
alert("before new step. Step: " + this._currentStep);
391+
alert("before new step. Step: " + this.currentStep());
392392

393393
// return false to stop displaying the next step
394394
// return false;

example/callbacks/onbeforechange.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h4>Section Six</h4>
7272
function startIntro(){
7373
var intro = introJs();
7474
intro.onbeforechange(function () {
75-
if (this._currentStep === 2) {
75+
if (this.currentStep() === 2) {
7676
alert('You cannot continue! :P')
7777
return false;
7878
}

0 commit comments

Comments
 (0)