This commit is contained in:
Hakim El Hattab 2013-11-07 09:15:56 -05:00
parent 150cb81405
commit 3653ad5b19
2 changed files with 5 additions and 3 deletions

View File

@ -2330,8 +2330,10 @@ var Reveal = (function(){
var parentAutoSlide = currentSlide.parentNode ? currentSlide.parentNode.getAttribute( 'data-autoslide' ) : null; var parentAutoSlide = currentSlide.parentNode ? currentSlide.parentNode.getAttribute( 'data-autoslide' ) : null;
var slideAutoSlide = currentSlide.getAttribute( 'data-autoslide' ); var slideAutoSlide = currentSlide.getAttribute( 'data-autoslide' );
// If the current slide has a data-autoslide use that, // Pick value in the following priority order:
// otherwise use the config.autoSlide value // 1. Current slide's data-autoslide
// 2. Parent slide's data-autoslide
// 3. Global autoSlide setting
if( slideAutoSlide ) { if( slideAutoSlide ) {
autoSlide = parseInt( slideAutoSlide, 10 ); autoSlide = parseInt( slideAutoSlide, 10 );
} }

2
js/reveal.min.js vendored
View File

@ -1,5 +1,5 @@
/*! /*!
* reveal.js 2.6.0-dev (2013-11-07, 09:11) * reveal.js 2.6.0-dev (2013-11-07, 09:15)
* http://lab.hakim.se/reveal-js * http://lab.hakim.se/reveal-js
* MIT licensed * MIT licensed
* *