Browse Source

make sure isVerticalSlide doesn't throw npe

embed
Hakim El Hattab 11 years ago
parent
commit
a0501a30b2
  1. 2
      js/reveal.js
  2. 4
      js/reveal.min.js

2
js/reveal.js

@ -1317,7 +1317,7 @@ var Reveal = (function(){
// Prefer slide argument, otherwise use current slide // Prefer slide argument, otherwise use current slide
slide = slide ? slide : currentSlide; 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

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save