[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 th

[jQuery] addUnique

2008-05-01 Thread Iconico
Just thought that this might help someone's pain. I have a group of objects and I wanted to add an additional object to it, simply by doing this: jQuery('#divMain img').add('#newImg'); The problem was that in my situation '#divMain img' sometimes already contains '#newImg', and when it does the