浏览代码

clarify getTotalSlides() returns the number of slides

Adam Spiers 8 年之前
父节点
当前提交
40912ace1f
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      README.md
  2. 1 0
      js/reveal.js

+ 1 - 1
README.md

@@ -497,7 +497,7 @@ Reveal.getCurrentSlide();
 Reveal.getIndices(); // { h: 0, v: 0 } }
 Reveal.getPastSlideCount();
 Reveal.getProgress(); // (0 == first slide, 1 == last slide)
-Reveal.getTotalSlides();
+Reveal.getTotalSlides(); // total number of slides
 
 // Returns the speaker notes for the current slide
 Reveal.getSlideNotes();

+ 1 - 0
js/reveal.js

@@ -4984,6 +4984,7 @@
 		// Returns the indices of the current, or specified, slide
 		getIndices: getIndices,
 
+		// Returns the total number of slides
 		getTotalSlides: getTotalSlides,
 
 		// Returns the slide element at the specified index