diff options
author | Hakim El Hattab | 2013-08-23 09:10:11 -0400 |
---|---|---|
committer | Hakim El Hattab | 2013-08-23 09:10:11 -0400 |
commit | a0501a30b23c953e1195f882cabfb7ec27c1bfcf (patch) | |
tree | 4376d4b84cb6dca80799afde605c847a78f49367 /js/reveal.js | |
parent | 5cf49561a88565ff94af288408ed7ffed64c8815 (diff) |
make sure isVerticalSlide doesn't throw npe
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 fabcded..c7860ad 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1317,7 +1317,7 @@ var Reveal = (function(){ // Prefer slide argument, otherwise use current slide slide = slide ? slide : currentSlide; - return slide && !!slide.parentNode.nodeName.match( /section/i ); + return slide && slide.parentNode && !!slide.parentNode.nodeName.match( /section/i ); } |