Add nextFragment and previousFragment to the API
authorMichael Kühnel <mail@michael-kuehnel.de>
Thu, 18 Oct 2012 21:19:01 +0000 (23:19 +0200)
committerMichael Kühnel <mail@michael-kuehnel.de>
Thu, 18 Oct 2012 21:19:01 +0000 (23:19 +0200)
Making it possible to call the methods Reveal.nextFragment() and Reveal.previousFragment() from »outside«.

js/reveal.js

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