Hi guys,

This is really not a bug but I thought I would bring it to your

$$('[type=radio]').map(function(el){return el.next()}); // => [label,
$$('[type=radio]').map(Element.next); // => [label, undefined]

The "map" method is passing 2 params to the iterator.
This makes the Element.next() go nuts cause its second param is used
for sibling offset.

In PHP array_map only passes the "value" and not the index.
It makes since for Enumerable.each() to send both, but I think map
should be left to just the value. I image there are more cases where
this sort or error would occur.

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to