projects
/
reveal.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f3bf14
)
Do not fail on other kinds of hashes
author
Fil
<fil@rezo.net>
Thu, 15 Mar 2012 17:00:26 +0000
(18:00 +0100)
committer
Fil
<fil@rezo.net>
Thu, 15 Mar 2012 17:00:26 +0000
(18:00 +0100)
js/reveal.js
patch
|
blob
|
history
diff --git
a/js/reveal.js
b/js/reveal.js
index ff0c47a4172ac405d62fcefb9decc15d111765b4..94fcf37d2c5f64b06989871dee2a9e44abc6c663 100644
(file)
--- a/
js/reveal.js
+++ b/
js/reveal.js
@@
-528,8
+528,8
@@
var Reveal = (function(){
var bits = window.location.hash.slice(2).split('/');
// Read the index components of the hash
- indexh =
bits[0] ? parseInt( bits[0] ) : 0
;
- indexv =
bits[1] ? parseInt( bits[1] ) : 0
;
+ indexh =
parseInt( bits[0] ) || 0
;
+ indexv =
parseInt( bits[1] ) || 0
;
navigateTo( indexh, indexv );
}