From 3653ad5b19cc48eb6c84de0f7c52b1aa8dac55e3 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 7 Nov 2013 09:15:56 -0500 Subject: comments --- js/reveal.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index a2ceb7b..aef25e6 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2330,8 +2330,10 @@ var Reveal = (function(){ var parentAutoSlide = currentSlide.parentNode ? currentSlide.parentNode.getAttribute( 'data-autoslide' ) : null; var slideAutoSlide = currentSlide.getAttribute( 'data-autoslide' ); - // If the current slide has a data-autoslide use that, - // otherwise use the config.autoSlide value + // Pick value in the following priority order: + // 1. Current slide's data-autoslide + // 2. Parent slide's data-autoslide + // 3. Global autoSlide setting if( slideAutoSlide ) { autoSlide = parseInt( slideAutoSlide, 10 ); } -- cgit v1.2.3