aboutsummaryrefslogtreecommitdiffhomepage
path: root/js
diff options
context:
space:
mode:
authorChris Lawrence2013-07-22 05:39:20 -0400
committerChris Lawrence2013-07-22 05:39:20 -0400
commit4874b13f916c5683cbcaefcf127f548413ec3043 (patch)
tree30ef93372b5b522ec16920cc320453ff33f86dcd /js
parentad086b897eafb9f314f75dfc8e451090b6bbf809 (diff)
parent7d19b4f7ce2ab3fd7880d0f60b1c147d44808f0c (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to '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;
}