add 'ready' event (#182)

This commit is contained in:
Hakim El Hattab committed 2012-10-17 00:20:42 -04:00
1 parent f70dcd3c9f
commit 3a2036e2b2
3 files changed
+23 -6

No files matched your search

+8 -1
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
} );
}
/**