Closed (fixed)
Project:
Lightbox2
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2013 at 07:04 UTC
Updated:
20 Jul 2013 at 07:31 UTC
When a Lightbox2 slideshow that displays captions is closed and then another slideshow is opened that has no captions a bug is seen. Lightbox does not clean up the Lightbox.imageArray array and subsequently the captions for the first slideshow are displayed on the second slideshow.
The attached patch adds two lines of code to the Lightbox.end function to ensure the captions are not seen a second time. It shouldn't affect any other operations, but is good practice.
| Comment | File | Size | Author |
|---|---|---|---|
| lightbox_close_cleanup.patch | 441 bytes | sydneyshan |
Comments
Comment #1
yukare commentedCommited to git: http://drupalcode.org/project/lightbox2.git/commit/cdcf77b
Thanks.