diff options
author | Hakim El Hattab | 2012-11-13 21:08:04 -0500 |
---|---|---|
committer | Hakim El Hattab | 2012-11-13 21:08:04 -0500 |
commit | d9371e21a0fe2b4df2898c07f59ebefdedeff241 (patch) | |
tree | bd6a959c20629ea9c21295996971cbc729095ae7 /js/reveal.js | |
parent | ad54b07a849203e751222a24d86a6dbff1067bc0 (diff) |
null check parentNode in case slide has been detached
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 310672d..621a85b 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -749,7 +749,7 @@ var Reveal = (function(){ // If we were on a vertical stack, remember what vertical index // it was on so we can resume at the same position when returning - if( previousSlide && previousSlide.parentNode.classList.contains( 'stack' ) ) { + if( previousSlide && previousSlide.parentNode && previousSlide.parentNode.classList.contains( 'stack' ) ) { setPreviousVerticalIndex( previousSlide.parentNode, indexv ); } |