DanielMuller / koken-plugin-photoswipe

Photoswipe integration for Koken
36 stars 13 forks source link

fixed problems with Internet Explorer #16

Closed dhoffend closed 9 years ago

dhoffend commented 9 years ago

I came across a bug with Internet Explorer 11 where only one single image was shown in the photoswipe lightbox cause during the each() loop the item was referenced for every single image instead of being recreated.

By make item (and the other vars) a local variable they'll be recreated in the next loop run and the lightbox works with IE11 as expected.