[jQuery] Re: empty() is faking ?

2009-05-04 Thread Mike Nichols
this is probably due to the refresh problems in firebug On May 4, 7:33 am, Olivier Percebois-Garve perceb...@gmail.com wrote: Hi I'm puzzled with this :http://pastebin.me/49fef93928aff (in firebug click on the jquery object, then expand 0) Using empty() or remove() on the lis of a ul, it

[jQuery] Re: empty() is faking ?

2009-05-04 Thread Ricardo
On May 4, 11:33 am, Olivier Percebois-Garve perceb...@gmail.com wrote: Hi I'm puzzled with this :http://pastebin.me/49fef93928aff (in firebug click on the jquery object, then expand 0) Using empty() or remove() on the lis of a ul, it seems that jQuery is faking to remove them, i.e the

[jQuery] Re: empty() is faking ?

2009-05-04 Thread Olivier Percebois-Garve
Ricardo wrote: On May 4, 11:33 am, Olivier Percebois-Garve perceb...@gmail.com wrote: Hi I'm puzzled with this :http://pastebin.me/49fef93928aff (in firebug click on the jquery object, then expand 0) Using empty() or remove() on the lis of a ul, it seems that jQuery is faking to remove

[jQuery] Re: empty() is faking ?

2009-05-04 Thread Ricardo
Could not make much sense out of your video either :D The thing is: when you log an object or element in firebug, it's just a reference to the object itself, not a snapshot of it at that instant in time. It will always show the object as it is *now*. Try this in the console: x = {a:1};

[jQuery] Re: empty() is faking ?

2009-05-04 Thread Olivier Percebois-Garve
That explains my issue very well and will save me a lot of headaches. (and gives a few ideas for a debug plugin) thank you -Olivier Ricardo wrote: Could not make much sense out of your video either :D The thing is: when you log an object or element in firebug, it's just a reference to the