> Please correct me if I'm understanding this the wrong way. Strings are safe.
> Object references are not.

That's correct.  It's safe to store primitives in an expando because
the aren't reference counted for garbage collection.  But objects are
trouble.  An IE memory leak pattern is as simple as this:

var o = document.getElementById('A');
document.getElementById('A').myprop = o;

Jack Slocum has a good blog entry on avoiding memory leaks:

http://www.jackslocum.com/blog/2006/10/02/3-easy-steps-to-avoid-javascript-memory-leaks/

Mike

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to