Merge pull request #20 from Fil/master

reveal.js was failing when the hash was of an unexpected format
edit
Hakim El Hattab 2012-03-18 14:14:52 -07:00
commit a77842521e
1 changed files with 2 additions and 2 deletions

View File

@ -528,8 +528,8 @@ 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 = bits[0] ? parseInt( bits[0] ) : 0; indexh = parseInt( bits[0] ) || 0 ;
indexv = bits[1] ? parseInt( bits[1] ) : 0; indexv = parseInt( bits[1] ) || 0 ;
navigateTo( indexh, indexv ); navigateTo( indexh, indexv );
} }