1
0
Fork 0

Merge branch 'fix-notes-after-pr-435' of https://github.com/ericweikl/reveal.js

This commit is contained in:
Hakim El Hattab 2013-06-29 21:36:35 -04:00
commit f1234e51e1
1 changed files with 6 additions and 6 deletions

View File

@ -1918,11 +1918,11 @@ var Reveal = (function(){
toArray( fragments ).forEach( function( element ) { toArray( fragments ).forEach( function( element ) {
element.classList.add( 'visible' ); 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(); updateControls();
return true; return true;
} }
@ -1952,11 +1952,11 @@ var Reveal = (function(){
toArray( fragments ).forEach( function( f ) { toArray( fragments ).forEach( function( f ) {
f.classList.remove( 'visible' ); 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(); updateControls();
return true; return true;
} }