make sure isVerticalSlide doesn't throw npe

edit
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