What I want is quite easy to achieve:
function $$() {
    if(arguments[arguments.length-1].tagName)
    return Selector.findChildElements($A(arguments).last(),
$A(arguments).slice(0,-1));
    else
    return Selector.findChildElements(document, $A(arguments));
}

I think this can make the $$ function to be much more flexible.

On Oct 18, 6:44 pm, "Mislav Marohni " <[EMAIL PROTECTED]>
wrote:
> On 10/18/07, Ignacio Coloma <[EMAIL PROTECTED]> wrote:
>
>
>
> > $$("....").each(function(node){
> >    node.getElementsBySelector("a.myclass");
> > })
>
> This snippet doesn't really do anything ...
>
> http://prototypejs.org/api/element/getelementsbyselector/
>
>
>
> > Is this what you mean?
>
> The method has been renamed to "select" in 1.6.0.
>
> I don't see what all the fuss is about, can't you just try and use this
> method instead of complaining how you would rather do it some harder way?
>
> Thanks.


--~--~---------~--~----~------------~-------~--~----~
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 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to