PDA

View Full Version : getChildrenByClassName


glauff
11-08-2006, 05:15 AM
Hello Jack,
I encountered a problem with the getChildrenByClassName Function.
The function returns an array with the length of 1, even if no children were found.

You do

cn[len];

but I think :

cn = new Array(len);

would be a better choice.

What do you think ?

jack.slocum
11-08-2006, 07:31 AM
Yep. That's a bug. I fixed in the dev code. Thanks for reporting it.

glauff
11-10-2006, 08:41 AM
Hi,

I just checked RC1.

YAHOO.ext.Element.getChildrenByTagName
has the same bug.

jack.slocum
11-10-2006, 09:46 AM
Since I just put it up a little bit ago I went ahead and uploaded a new zip correcting that function too. I should have checked.