jQuery leaks solved, but why?

后端 未结 2 1772
栀梦
栀梦 2021-02-19 17:01

I am working on a large enterprise application with a LOT of JavaScript. Enough that I can\'t possibly go through and fix all the small circular references that have been create

2条回答
  •  遥遥无期
    2021-02-19 17:51

    I'm going to theorise that it's similar to .net garbage collection, in that it relies on Pinned objects in the heap.

    IE is treating the parent of a removed object like a pin and not clearing the removed object down properly.

    The act of moving the deleted item to this generated gc container is basically removing the pin because IE knows that nothing is relying on that container.

    That's my gut feeling anyway.

提交回复
热议问题