This project is archived and is in readonly mode.

#1183 ✓invalid
Igor

dollars does not return data from arrays

Reported by Igor | February 25th, 2011 @ 03:30 PM

$$ does not combine the elements of arrays

example

var buttons = div.getChildren('> div:not(.web_layer) > :nth-child(1)');
var slides = div.getChildren('> div:not(.web_layer) > :nth-child(2)'); //.addClass('dn');

var closes = div.getChildren('> div:not(.web_layer) > :nth-child(3)'); //.addClass('dn');

console.log($$(slides).length); - ok > 0
console.log($$(closes).length); - ok > 0
console.log($$(slides, closes).length); - ALWAYS ZERO
console.log($$([slides, closes]).length); - ALWAYS ZERO
console.log($$([slides, closes].flatten()).length); - ok > 0

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages