yasinmhd / fancybox

Automatically exported from code.google.com/p/fancybox
0 stars 0 forks source link

custom itemArray can't be specified on creation #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

var images = $("ul.screenshots a");                                             

images.fancybox({'itemArray':images});

What is the expected output? What do you see instead?

Should provide a gallery of all links in the list, just shows a single image

What version of the product are you using? 

1.2.1

The problem is down to _initialize() setting opts = settings, but then in 
_start() opts.itemArray 
=[];  before the check for settings.itemArray.length > 0    as such the array 
is being reset.  The 
solution is to move  opts.itemArray = []; inside the else.

Original issue reported on code.google.com by da...@ritter.demon.co.uk on 7 Jul 2009 at 1:39

GoogleCodeExporter commented 8 years ago

Original comment by janis.sk...@gmail.com on 29 Oct 2009 at 4:09