aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab2013-08-23 09:10:11 -0400
committerHakim El Hattab2013-08-23 09:10:11 -0400
commita0501a30b23c953e1195f882cabfb7ec27c1bfcf (patch)
tree4376d4b84cb6dca80799afde605c847a78f49367 /js/reveal.js
parent5cf49561a88565ff94af288408ed7ffed64c8815 (diff)
make sure isVerticalSlide doesn't throw npe
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js2
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 );
}