1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-07-31 03:40:28 +02:00

Merge pull request #72 from rhudea/fix-fragmenthidden

Send the correct element for fragmenthidden events
This commit is contained in:
Hakim El Hattab
2012-06-24 13:52:11 -07:00

View File

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