소스 검색

avoid repetition

Hakim El Hattab 10 년 전
부모
커밋
0e0a4ec6e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

@@ -2793,7 +2793,7 @@
 		var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
 
 		// The number of past and total slides
-		var totalCount = dom.wrapper.querySelectorAll( SLIDES_SELECTOR + ':not(.stack)' ).length;
+		var totalCount = getTotalSlides();
 		var pastCount = 0;
 
 		// Step through all slides and count the past ones