summaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/js/reveal.js b/js/reveal.js
index fcc064d..1194657 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1,5 +1,5 @@
/*!
- * reveal.js 2.1 r35
+ * reveal.js 2.1 r36
* http://lab.hakim.se/reveal-js
* MIT licensed
*
@@ -268,12 +268,15 @@ 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
- } );
+ // Notify listeners that the presentation is ready but use a 1ms
+ // timeout to ensure it's not fired synchronously after #initialize()
+ setTimeout( function() {
+ dispatchEvent( 'ready', {
+ 'indexh': indexh,
+ 'indexv': indexv,
+ 'currentSlide': currentSlide
+ } );
+ }, 1 );
}
/**