aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-06-24 13:52:11 -0700
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-06-24 13:52:11 -0700
commitbdad679715ca3d82a0ff4a2bae7353785ac9b125 (patch)
tree4bbf5c81ebc3c479b11aea900cf336381b7c82ce
parentfa98bacef62012cb1c101ce1b43267d8955629d6 (diff)
parent1053dafc1e0fda9270ea167e88583c8ff7ecaaa2 (diff)
downloadfosdem-2018-presentation-bdad679715ca3d82a0ff4a2bae7353785ac9b125.tar
fosdem-2018-presentation-bdad679715ca3d82a0ff4a2bae7353785ac9b125.tar.gz
Merge pull request #72 from rhudea/fix-fragmenthidden
Send the correct element for fragmenthidden events
-rw-r--r--js/reveal.js4
1 files 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;
}
}