[Prototype-core] Re: $$ function needs context attribute?

2007-10-17 Thread Mislav Marohnić
On 10/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think is is good to create a new function called $$$ or something like that to make a short selector function and supports context. We use Element#select to constrain the lookup to a certain element: $(foo).select(img) We

[Prototype-core] Re: $$ function needs context attribute?

2007-10-17 Thread [EMAIL PROTECTED]
Oh, the select method, I haven't use it, and the context is important for the css selector, and in the case Selector.findChildElements supports the context, So only change the $ $ function and to check whether the last argument is HTML element or not is enough. And context is really very