Ver Fonte

Add nextFragment and previousFragment to the API

Making it possible to call the methods Reveal.nextFragment() and Reveal.previousFragment() from »outside«.
Michael Kühnel há 12 anos atrás
pai
commit
5cfb7b3239
1 ficheiros alterados com 2 adições e 0 exclusões
  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,