both:
delete MyObject; // clears the contents of the object
MyObject = null; // clears the reference to the object, allowing garbage
collection to do the rest
----- Original Message -----
From: "Stephan Tolksdorf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 2:50 AM
Subject: Re: [Dynapi-Dev] Memory question
> Jordi Ministral wrote:
> > But make sure you specifically remove all references to browser objects
> > otherwise it will leak. That's what I found out when I was removing the
> > memory leaks from the API.
>
> (I'm new to this list...)
>
> You seem to have some experiences with memory leaks in JavaScript.
>
> When should one use object = null and when should one use delete
> object? Just curious...
>
> Stephan
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev