"goto is back, bye bye ugly stepTo"

This commit is contained in:
Bartek Szopka
2012-03-14 20:44:04 +00:00
parent c4d6ab3b8a
commit 1a21865ea6
3 changed files with 13 additions and 12 deletions

View File

@@ -340,7 +340,7 @@ if ("ontouchstart" in document.documentElement) {
`api.init()` - initializes the presentation,
`api.next()` - moves to next step of the presentation,
`api.prev()` - moves to previous step of the presentation
`api.stepTo( stepElement ) - moves the presentation to given step element (the DOM element of the step).
`api.goto( stepElement ) - moves the presentation to given step element (the DOM element of the step).
You can also simply call `impress()` again to get the API, so `impress().next()` is also allowed.
Don't worry, it wont initialize the presentation again.