cbeyls / slimbox

The ultimate lightweight Lightbox clone
http://www.digitalia.be/software/slimbox2
50 stars 24 forks source link

IE9 error- something is wrong with nextImage and prevImage var at the end of the array ! #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
IE9 error
Unable to get value of the property '0': object is null or undefined 
slimbox2.js, line 201 character 29

something is wrong with nextImage and prevImage var at the end of the array !

code:
if (prevImage >= 0) preloadPrev.src = images[prevImage][0];
if (nextImage >= 0) preloadNext.src = images[nextImage][0];

Original issue reported on code.google.com by ramsa...@gmail.com on 11 Jun 2011 at 2:17

cbeyls commented 9 years ago

If you're calling the API, make sure you pass arrays with URL and description as value 0 and 1 (respectively), for each image.