make sure isVerticalSlide doesn't throw npe

This commit is contained in:
Hakim El Hattab 2013-08-23 09:10:11 -04:00
parent 5cf49561a8
commit a0501a30b2
2 changed files with 3 additions and 3 deletions

View file

@ -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 );
}

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long