Sebobo / jquery.rondell

A jQuery plugin for displaying stuff in a highly customizable carousel.
http://projects.sebastianhelzle.net/jquery.rondell/
MIT License
54 stars 11 forks source link

thumbGallery _focusedItem undefined #3

Open michaeldewayneharris opened 11 years ago

michaeldewayneharris commented 11 years ago

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.