aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-06-29 21:36:35 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-06-29 21:36:35 -0400
commitf1234e51e1ec9fd299b6f2f5705d5a5b778a0840 (patch)
tree1b072ab30098cf6243525f7fb443456a3326ef28
parentf0e63c8e7549d21fb9e17e9af705ba7fc7eeb0f0 (diff)
parent46dd9dd817a7e362afb099d3fcc6e9a97c1ee4d3 (diff)
downloadfosdem-2018-presentation-f1234e51e1ec9fd299b6f2f5705d5a5b778a0840.tar
fosdem-2018-presentation-f1234e51e1ec9fd299b6f2f5705d5a5b778a0840.tar.gz
Merge branch 'fix-notes-after-pr-435' of https://github.com/ericweikl/reveal.js
-rw-r--r--js/reveal.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 676122f..033fe31 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1918,11 +1918,11 @@ var Reveal = (function(){
toArray( fragments ).forEach( function( element ) {
element.classList.add( 'visible' );
-
- // Notify subscribers of the change
- dispatchEvent( 'fragmentshown', { fragment: element } );
} );
+ // Notify subscribers of the change
+ dispatchEvent( 'fragmentshown', { fragment: fragments[0], fragments: fragments } );
+
updateControls();
return true;
}
@@ -1952,11 +1952,11 @@ var Reveal = (function(){
toArray( fragments ).forEach( function( f ) {
f.classList.remove( 'visible' );
-
- // Notify subscribers of the change
- dispatchEvent( 'fragmenthidden', { fragment: f } );
} );
+ // Notify subscribers of the change
+ dispatchEvent( 'fragmenthidden', { fragment: fragments[0], fragments: fragments } );
+
updateControls();
return true;
}