From: Raul Hudea Date: Wed, 20 Jun 2012 16:12:04 +0000 (+0300) Subject: Send the correct element for fragmenthidden events X-Git-Tag: 1.4.0~37^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1053dafc1e0fda9270ea167e88583c8ff7ecaaa2;p=reveal.js.git Send the correct element for fragmenthidden events --- diff --git a/js/reveal.js b/js/reveal.js index d398942..e753d17 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -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; } }