Browse Source

null check parentNode in case slide has been detached

Hakim El Hattab 12 năm trước cách đây
mục cha
commit
d9371e21a0
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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 );
 		}
 

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
js/reveal.min.js


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác