returning index only when current fragment is defined
This commit is contained in:
1 parent
2f8aa51dc2
commit
2256621169
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -2050,7 +2050,7 @@ var Reveal = (function(){
|
||||
if( currentSlide ) {
|
||||
var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' );
|
||||
|
||||
if( visibleFragments ) {
|
||||
if( visibleFragments.length ) {
|
||||
return visibleFragments.length;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user