fix issue with auto-advance (closes #273)

This commit is contained in:
Hakim El Hattab 2013-01-02 09:14:28 -05:00
parent 256186e259
commit 68f8c9361e
2 changed files with 5 additions and 4 deletions

View file

@ -958,7 +958,8 @@ var Reveal = (function(){
var slideAutoSlide = slides[index].getAttribute( 'data-autoslide' ); var slideAutoSlide = slides[index].getAttribute( 'data-autoslide' );
if( slideAutoSlide ) { if( slideAutoSlide ) {
autoSlide = parseInt( slideAutoSlide, 10 ); autoSlide = parseInt( slideAutoSlide, 10 );
} else { }
else {
autoSlide = config.autoSlide; autoSlide = config.autoSlide;
} }
@ -1165,7 +1166,7 @@ var Reveal = (function(){
// If this is a vertical slide, grab the vertical index // If this is a vertical slide, grab the vertical index
if( isVertical ) { if( isVertical ) {
v = Math.max( toArray( slide.parentNode.children ).indexOf( slide ), 0 ); v = Math.max( toArray( slide.parentNode.querySelectorAll( 'section' ) ).indexOf( slide ), 0 );
} }
} }

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long