瀏覽代碼

use internal pointer for current slide

Hakim El Hattab 5 年之前
父節點
當前提交
5adc2032c0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      js/reveal.js

+ 2 - 2
js/reveal.js

@@ -2976,7 +2976,7 @@
 	function syncSlide( slide ) {
 
 		// Default to the current slide
-		slide = slide || Reveal.getCurrentSlide();
+		slide = slide || currentSlide;
 
 		syncBackground( slide );
 		syncFragments( slide );
@@ -2999,7 +2999,7 @@
 	function syncFragments( slide ) {
 
 		// Default to the current slide
-		slide = slide || Reveal.getCurrentSlide();
+		slide = slide || currentSlide;
 
 		return sortFragments( slide.querySelectorAll( '.fragment' ) );