浏览代码

Add nextFragment and previousFragment to the API

Making it possible to call the methods Reveal.nextFragment() and Reveal.previousFragment() from »outside«.
Michael Kühnel 12 年之前
父节点
当前提交
5cfb7b3239
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      js/reveal.js

+ 2 - 0
js/reveal.js

@@ -1293,6 +1293,8 @@ var Reveal = (function(){
 		down: navigateDown,
 		prev: navigatePrev,
 		next: navigateNext,
+		nextFragment: nextFragment,
+		previousFragment: previousFragment,
 
 		// Deprecated aliases
 		navigateTo: slide,