1
0
Fork 0

prevent invalid slidechanged on page load

This commit is contained in:
Hakim El Hattab 2013-08-17 12:18:48 -04:00
parent 3c5f3ee048
commit 3dc53b891d
2 changed files with 4 additions and 4 deletions

View File

@ -1409,8 +1409,8 @@ var Reveal = (function(){
// Reset the state array // Reset the state array
state.length = 0; state.length = 0;
var indexhBefore = indexh, var indexhBefore = indexh || 0,
indexvBefore = indexv; indexvBefore = indexv || 0;
// Activate and transition to the new slide // Activate and transition to the new slide
indexh = updateSlides( HORIZONTAL_SLIDES_SELECTOR, h === undefined ? indexh : h ); indexh = updateSlides( HORIZONTAL_SLIDES_SELECTOR, h === undefined ? indexh : h );

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long