[jQuery] Re: addUnique

2008-05-06 Thread Ariel Flesler

This is actually a bug, I opened a ticket and added a diff, will be
fixed soon.

http://dev.jquery.com/ticket/2811

--
Ariel Flesler
http://flesler.blogspot.com

On 6 mayo, 13:50, Iconico <[EMAIL PROTECTED]> wrote:
> On May 1, 7:42 pm, Dave Methvin <[EMAIL PROTECTED]> wrote:
>
> > That actually sounds like a bug. What version ofjQueryare you using?
> > AFAICT,jQuery().add() is supposed to usejQuery.merge to avoid
> > duplicates. Can you create a test case and post a bug report?
>
> I'm using 1.2.3, the latest. I don't think it's a bug, it's more
> subtle than that.
>
> There's a thread here that details the issue pretty 
> well:http://groups.google.com/group/jquery-en/browse_thread/thread/f08ee33...
>
> If you still don't follow I can mock up a test for you, just let me
> know.


[jQuery] Re: addUnique

2008-05-06 Thread Iconico

On May 1, 7:42 pm, Dave Methvin <[EMAIL PROTECTED]> wrote:
> That actually sounds like a bug. What version ofjQueryare you using?
> AFAICT,jQuery().add() is supposed to usejQuery.merge to avoid
> duplicates. Can you create a test case and post a bug report?

I'm using 1.2.3, the latest. I don't think it's a bug, it's more
subtle than that.

There's a thread here that details the issue pretty well:
http://groups.google.com/group/jquery-en/browse_thread/thread/f08ee3387b7522b/46b61b9fe4e7d4b6

If you still don't follow I can mock up a test for you, just let me
know.


[jQuery] Re: addUnique

2008-05-01 Thread Dave Methvin


> The problem was that in my situation '#divMain img' sometimes already
> contains '#newImg', and when it does the add function would add a
> second copy of it, which messed things up further down the line.

That actually sounds like a bug. What version of jQuery are you using?
AFAICT, jQuery().add() is supposed to use jQuery.merge to avoid
duplicates. Can you create a test case and post a bug report?