diff options
author | Hakim El Hattab | 2013-03-04 15:59:44 -0500 |
---|---|---|
committer | Hakim El Hattab | 2013-03-04 15:59:44 -0500 |
commit | 7db0d9c17d85a1bd9be2a21fb8ede1223d1d5845 (patch) | |
tree | 7b804d0a0ed5497bd21e70ddb9c23b41469b2b60 /js/reveal.js | |
parent | 7081f901da553206f746c40c4a0c1b5773697cf2 (diff) |
enable pos-startup config of autoSlide
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/js/reveal.js b/js/reveal.js index 2fa74df..db3959c 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -77,9 +77,8 @@ var Reveal = (function(){ dependencies: [] }, - // Stores if the next slide should be shown automatically - // after n milliseconds - autoSlide = config.autoSlide, + // The current auto-slide duration + autoSlide = 0, // The horizontal and vertical index of the currently active slide indexh = 0, @@ -316,9 +315,6 @@ var Reveal = (function(){ // Read the initial hash readURL(); - // Start auto-sliding if it's enabled - cueAutoSlide(); - // Notify listeners that the presentation is ready but use a 1ms // timeout to ensure it's not fired synchronously after #initialize() setTimeout( function() { @@ -401,6 +397,12 @@ var Reveal = (function(){ // Force a layout to make sure the current config is accounted for layout(); + // Reflect the current autoSlide value + autoSlide = config.autoSlide; + + // Start auto-sliding if it's enabled + cueAutoSlide(); + } /** |