Sfoglia il codice sorgente

returning index only when current fragment is defined

tkaczmarzyk 12 anni fa
parent
commit
2256621169
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 1 - 1
js/reveal.js

@@ -2050,7 +2050,7 @@ var Reveal = (function(){
 			if( currentSlide ) {
 				var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' );
 
-				if( visibleFragments ) {
+				if( visibleFragments.length ) {
 					return visibleFragments.length;
 				}
 			}

File diff suppressed because it is too large
+ 1 - 1
js/reveal.min.js


Some files were not shown because too many files changed in this diff