Remove assignment to indexv and indexh to trigger 'onslidechange' at startup and onhashchange.
This commit is contained in:
1 parent
d5c2d0c03e
commit
dd6c605826
1 file changed
+5
-5
+5
-5
@@ -765,12 +765,12 @@ var Reveal = (function(){
|
|||||||
function readURL() {
|
function readURL() {
|
||||||
// Break the hash down to separate components
|
// Break the hash down to separate components
|
||||||
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user