make sure isVerticalSlide doesn't throw npe
This commit is contained in:
parent
5cf49561a8
commit
a0501a30b2
2 changed files with 3 additions and 3 deletions
|
@ -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
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue