@David, it will be nice to see a chapter about memory leaks in browser in
your 6th version of the book.


On Tue, Dec 7, 2010 at 5:49 PM, David Flanagan <da...@davidflanagan.com>wrote:

> On 12/07/2010 04:18 AM, Christophe Porteneuve wrote:
>
>> Hey there,
>>
>> The core source of memory leaks in JS is circular references between the
>> DOM and the JS object space. Essentially this happens when you maintain
>> refs to DOM nodes from your JS *and* put refs to JS objects from the
>> same closure in expando properties of these DOM nodes.
>>
>>
> My understand is that this pattern of leaks was always IE-specific and has
> been (at least mostly) fixed in IE7.  (But I have not done any primary
> research into the issue myself.)
>
> I have removed my discussion of cyclic memory leaks from the (not yet out)
> 6th edition of my JavaScript book.
>
>        David Flanagan
>
>
> _______________________________________________
> JSMentors mailing list
> JSMentors@jsmentors.com
> http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com
>
_______________________________________________
JSMentors mailing list
JSMentors@jsmentors.com
http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com

Reply via email to