Ver código fonte

prevent invalid slidechanged on page load

Hakim El Hattab 10 anos atrás
pai
commit
3dc53b891d
2 arquivos alterados com 3 adições e 3 exclusões
  1. 2 2
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 2 - 2
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 );

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
js/reveal.min.js


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff