From 1053dafc1e0fda9270ea167e88583c8ff7ecaaa2 Mon Sep 17 00:00:00 2001 From: Raul Hudea Date: Wed, 20 Jun 2012 19:12:04 +0300 Subject: [PATCH] Send the correct element for fragmenthidden events --- js/reveal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }