diff options
author | Hakim El Hattab | 2013-08-17 12:18:48 -0400 |
---|---|---|
committer | Hakim El Hattab | 2013-08-17 12:18:48 -0400 |
commit | 3dc53b891d54120bf0db7f26cb6e829f7b889736 (patch) | |
tree | 6eedb1758f0c1f86e13dbb1522d1f5bf7993f730 /js/reveal.js | |
parent | 3c5f3ee048b826f45844173f2ebcc1285263583c (diff) |
prevent invalid slidechanged on page load
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js index cf9df15..4ce8f3b 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1409,8 +1409,8 @@ var Reveal = (function(){ // Reset the state array state.length = 0; - var indexhBefore = indexh, - indexvBefore = indexv; + var indexhBefore = indexh || 0, + indexvBefore = indexv || 0; // Activate and transition to the new slide indexh = updateSlides( HORIZONTAL_SLIDES_SELECTOR, h === undefined ? indexh : h ); |