aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-08-17 12:18:48 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-08-17 12:18:48 -0400
commit3dc53b891d54120bf0db7f26cb6e829f7b889736 (patch)
tree6eedb1758f0c1f86e13dbb1522d1f5bf7993f730 /js/reveal.js
parent3c5f3ee048b826f45844173f2ebcc1285263583c (diff)
downloadfreenode-live-2017-presentation-3dc53b891d54120bf0db7f26cb6e829f7b889736.tar
freenode-live-2017-presentation-3dc53b891d54120bf0db7f26cb6e829f7b889736.tar.gz
prevent invalid slidechanged on page load
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js4
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 );