null check parentNode in case slide has been detached
parent
ad54b07a84
commit
d9371e21a0
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue