1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-01 20:30:29 +02:00

Send the correct element for fragmenthidden events

This commit is contained in:
Raul Hudea
2012-06-20 19:12:04 +03:00
parent fa98bacef6
commit 1053dafc1e

View File

@@ -822,7 +822,7 @@ var Reveal = (function(){
verticalFragments[ verticalFragments.length - 1 ].classList.remove( 'visible' ); verticalFragments[ verticalFragments.length - 1 ].classList.remove( 'visible' );
// Notify subscribers of the change // Notify subscribers of the change
dispatchEvent( 'fragmenthidden', { fragment: verticalFragments[0] } ); dispatchEvent( 'fragmenthidden', { fragment: verticalFragments[ verticalFragments.length - 1 ] } );
return true; return true;
} }
} }
@@ -833,7 +833,7 @@ var Reveal = (function(){
horizontalFragments[ horizontalFragments.length - 1 ].classList.remove( 'visible' ); horizontalFragments[ horizontalFragments.length - 1 ].classList.remove( 'visible' );
// Notify subscribers of the change // Notify subscribers of the change
dispatchEvent( 'fragmenthidden', { fragment: horizontalFragments[0] } ); dispatchEvent( 'fragmenthidden', { fragment: horizontalFragments[ horizontalFragments.length - 1 ] } );
return true; return true;
} }
} }