Hi,

According to this blog post http://clientside.cnet.com/?p=114 a way to
fix memory leak is to NEVER store DOM element in the "this" object but
otherwise use the object id and call $(id) all the time.

For my own project i didn't do that, in fact I store DOM element then
on unload set it to null. It seems to work ?

But I am asking two question:

1. Is $() using in this way is time consuming ?

2. When working with DOM elements retrieved from $ or $$ or what
ever... the elements might not have id. In fact, in an HTML page only
few elements have an id. So what should I do ? Is there a magic
function to create a new unique Id ?

Best Regards,
Jp

-- 
Jean-Philippe Encausse - R&D Jalios SA
Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com
GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net
Mob: +33682125699 - Job: +33139239283 - Tel: +33139189015 - Fax: +33958789015
Do it Once, Use it Twice ~ Do it Twice, Make It Once

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to