From 3dc53b891d54120bf0db7f26cb6e829f7b889736 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sat, 17 Aug 2013 12:18:48 -0400 Subject: prevent invalid slidechanged on page load --- js/reveal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/reveal.js') 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 ); -- cgit v1.2.3