diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-07-18 18:18:41 -0700 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-07-18 18:18:41 -0700 |
commit | 54e59d02d4a1903a8f159f100aa1e322866ceddd (patch) | |
tree | 46f5e37d5783212323ca8abc6e3848928e1036e5 | |
parent | 819d2488aa1eb6a57fd3f635fbede76a6b5b1604 (diff) | |
parent | dd6c60582654f6a1a9237529007160ed6f3b3348 (diff) | |
download | fosdem-2018-presentation-54e59d02d4a1903a8f159f100aa1e322866ceddd.tar fosdem-2018-presentation-54e59d02d4a1903a8f159f100aa1e322866ceddd.tar.gz |
Merge pull request #83 from basecode/patch-slidechange
slidechange doesn't get fired on "hashchange" events
-rw-r--r-- | js/reveal.js | 10 |
1 files changed, 5 insertions, 5 deletions
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 ); } /** |