Преглед изворни кода

make sure isVerticalSlide doesn't throw npe

Hakim El Hattab пре 10 година
родитељ
комит
a0501a30b2
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 1 - 1
js/reveal.js

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

Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
js/reveal.min.js


Неке датотеке нису приказане због велике количине промена