Skip to content

Commit c442ad1

Browse files
committed
Merge pull request usablica#91 from vitorbal/patch-1
Add more documentation to onchange callback
2 parents cc7f830 + a890518 commit c442ad1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ introJs().onexit(function() {
198198
###introJs.onchange(providedCallback)
199199

200200
Set callback to change of each step of introduction. Given callback function will be called after completing each step.
201+
The callback function receives the element of the new step as an argument.
201202

202203
**Available since:** v0.3.0
203204

@@ -209,7 +210,7 @@ Set callback to change of each step of introduction. Given callback function wil
209210

210211
**Example:**
211212
```javascript
212-
introJs().onchange(function() {
213+
introJs().onchange(function(targetElement) {
213214
alert("new step");
214215
});
215216
````

0 commit comments

Comments
 (0)