scaron / prettyphoto

prettyPhoto is a jQuery based lightbox clone. Not only does it support images, it also add support for videos, flash, YouTube, iFrames. It’s a full blown media lightbox. The setup is easy and quick, plus the script is compatible in every major browser.
http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/
553 stars 281 forks source link

Uncaught ReferenceError: settings is not defined #96

Open splitbrain opened 12 years ago

splitbrain commented 12 years ago

When closing the autoplay demo of the included index.html (Gallery 1), one of the animation loops seem to run forever and causing thousands of javascript errors.

To reproduce:

The error is triggered in $pp_pic_holder.fadeIn and occurs because the settings object gets deleted on closing the lightbox. The question is: why is the fade in even triggered after closing the lightbox?