add 'ready' event (#182)

This commit is contained in:
Hakim El Hattab
2012-10-17 00:20:42 -04:00
parent f70dcd3c9f
commit 3a2036e2b2
3 changed files with 23 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*!
* reveal.js 2.1 r33
* reveal.js 2.1 r34
* http://lab.hakim.se/reveal-js
* MIT licensed
*
@ -267,6 +267,13 @@ var Reveal = (function(){
// Start auto-sliding if it's enabled
cueAutoSlide();
// Notify listeners that the presentation is ready
dispatchEvent( 'ready', {
'indexh': indexh,
'indexv': indexv,
'currentSlide': currentSlide
} );
}
/**