So, if I understand you, the third argument is exposed to the API but
not like an set that will be filled with additional query, but like an
simple array which the new elements will be simply appended.
So if the user would use the third argument, later, he will eventually
resort and removes the duplicates too. Am I corect?

On Feb 16, 3:04 pm, Robert Katić <[email protected]> wrote:
> Maybe I was not clear. I don't think it is wrong to live results
> unsorted if given as argument (if it was planed), but then we can take
> this in consideration to do optimizations...
>
> On Feb 16, 2:53 pm, Robert Katić <[email protected]> wrote:
>
> > I know, but adding other elements to the results (given as argument)
> > will probably make the results array unsorted (even with duplicates).
>
> > On Feb 16, 2:47 pm, John Resig <[email protected]> wrote:
>
> > > > Hm, how implemented, usage of the third argument would not guarantee
> > > > that the results will be sorted.
> > > > Take for example: Sizzle('foo.barr', null, anArray) - there is no
> > > > extra selector, so no sorting too.
>
> > > That's fine - since selectors that don't have a comma in them are
> > > already in document order - no need to sort them again.
>
> > > --John
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to