returning index only when current fragment is defined
This commit is contained in:
parent
2f8aa51dc2
commit
2256621169
@ -2050,7 +2050,7 @@ var Reveal = (function(){
|
|||||||
if( currentSlide ) {
|
if( currentSlide ) {
|
||||||
var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' );
|
var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' );
|
||||||
|
|
||||||
if( visibleFragments ) {
|
if( visibleFragments.length ) {
|
||||||
return visibleFragments.length;
|
return visibleFragments.length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user