looks like you need to add this to the top of your funcLeft: function for thumbGallery
if (r._focusedItem == null) {
r._focusedItem = r._getItem(r.currentLayer);
}
to see the issue,
open your carousel.html example
change the preset to "thumbGallery"
change one of the img's to a youtube embed: <a target="_blank" rel="rondell_1" href="images/galery/boar.jpg" title="Boar">
<iframe src="//www.youtube.com/embed/AEzTdBJUHO8" frameborder="0" allowfullscreen></iframe>
</a>
looks like you need to add this to the top of your funcLeft: function for thumbGallery
if (r._focusedItem == null) { r._focusedItem = r._getItem(r.currentLayer); }
to see the issue,
open your carousel.html example change the preset to "thumbGallery" change one of the img's to a youtube embed: <a target="_blank" rel="rondell_1" href="images/galery/boar.jpg" title="Boar"> <iframe src="//www.youtube.com/embed/AEzTdBJUHO8" frameborder="0" allowfullscreen></iframe> </a>
then load the page and you'll get the error.