aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-06-06 22:46:21 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-06-06 22:46:21 -0400
commit6a03f65e97853226afff31324b26a33d5960a97d (patch)
treeccb90997e2f1e06f4a2a22b91ce7171075cfb832 /README.md
parent2b6c61060b209d7eb58eb0a2fa111caef746f59e (diff)
downloadfosdem-2018-presentation-6a03f65e97853226afff31324b26a33d5960a97d.tar
fosdem-2018-presentation-6a03f65e97853226afff31324b26a33d5960a97d.tar.gz
include references to previous/current sldie DOM elements in slidechange event
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index b72e69f..8b7cab5 100644
--- a/README.md
+++ b/README.md
@@ -81,11 +81,11 @@ Reveal.addEventListener( 'somestate', function() {
### Slide change event
-An 'slidechanged' event is fired each time the slide is changed (regardless of state). The event object holds the index of the current slide.
+An 'slidechanged' event is fired each time the slide is changed (regardless of state). The event object holds the index values of the current slide as well as a reference to the previous and current slide HTML nodes.
```
Reveal.addEventListener( 'slidechanged', function( event ) {
- // event.indexh & event.indexv
+ // event.previousSlide, event.currentSlide, event.indexh, event.indexv
} );
```