Przeglądaj źródła

null check parentNode in case slide has been detached

Hakim El Hattab 12 lat temu
rodzic
commit
d9371e21a0
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 1 - 1
js/reveal.js

@@ -749,7 +749,7 @@ var Reveal = (function(){
 
 		// If we were on a vertical stack, remember what vertical index 
 		// it was on so we can resume at the same position when returning
-		if( previousSlide && previousSlide.parentNode.classList.contains( 'stack' ) ) {
+		if( previousSlide && previousSlide.parentNode && previousSlide.parentNode.classList.contains( 'stack' ) ) {
 			setPreviousVerticalIndex( previousSlide.parentNode, indexv );
 		}
 

Plik diff jest za duży
+ 1 - 1
js/reveal.min.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików