Explorar el Código

Remove assignment to `indexv` and `indexh` to trigger 'onslidechange' at startup and onhashchange.

Tobi Reiss hace 12 años
padre
commit
dd6c605826
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      js/reveal.js

+ 5 - 5
js/reveal.js

@@ -765,12 +765,12 @@ var Reveal = (function(){
 	function readURL() {
 		// Break the hash down to separate components
 		var bits = window.location.hash.slice(2).split('/');
-		
+
 		// Read the index components of the hash
-		indexh = parseInt( bits[0] ) || 0 ;
-		indexv = parseInt( bits[1] ) || 0 ;
-		
-		navigateTo( indexh, indexv );
+		var h = parseInt( bits[0] ) || 0 ;
+		var v = parseInt( bits[1] ) || 0 ;
+
+		navigateTo( h, v );
 	}
 	
 	/**