Browse Source

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

embed
Tobi Reiss 12 years ago
parent
commit
dd6c605826
  1. 6
      js/reveal.js

6
js/reveal.js

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

Loading…
Cancel
Save