summaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab2013-01-02 09:14:28 -0500
committerHakim El Hattab2013-01-02 09:14:28 -0500
commit68f8c9361e452b1c9740d9f6c72327ac7acd60c4 (patch)
tree1442e8763e0e50d45ec58a85b2459f931b95959f /js/reveal.js
parent256186e2591d445ae0b8c34222d183a9043650c6 (diff)
fix issue with auto-advance (closes #273)
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 70e2539..4574e25 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -958,7 +958,8 @@ var Reveal = (function(){
var slideAutoSlide = slides[index].getAttribute( 'data-autoslide' );
if( slideAutoSlide ) {
autoSlide = parseInt( slideAutoSlide, 10 );
- } else {
+ }
+ else {
autoSlide = config.autoSlide;
}
@@ -1165,7 +1166,7 @@ var Reveal = (function(){
// If this is a vertical slide, grab the vertical index
if( isVertical ) {
- v = Math.max( toArray( slide.parentNode.children ).indexOf( slide ), 0 );
+ v = Math.max( toArray( slide.parentNode.querySelectorAll( 'section' ) ).indexOf( slide ), 0 );
}
}