make sure isVerticalSlide doesn't throw npe
parent
5cf49561a8
commit
a0501a30b2
|
@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue