From: Tobi Reiss Date: Tue, 17 Jul 2012 08:05:55 +0000 (+0200) Subject: Remove assignment to `indexv` and `indexh` to trigger 'onslidechange' at startup... X-Git-Tag: 1.4.0~5^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dd6c60582654f6a1a9237529007160ed6f3b3348;p=reveal.js.git Remove assignment to `indexv` and `indexh` to trigger 'onslidechange' at startup and onhashchange. --- diff --git a/js/reveal.js b/js/reveal.js index 9276da3..c9e69a8 100644 --- a/js/reveal.js +++ b/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 ); } /**