Przeglądaj źródła

returning index only when current fragment is defined

tkaczmarzyk 12 lat temu
rodzic
commit
2256621169
2 zmienionych plików z 2 dodań i 2 usunięć
  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;
 				}
 			}

Plik diff jest za duży
+ 1 - 1
js/reveal.min.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików