Mashiane Expert Licensed User Longtime User Apr 5, 2024 #1 Hi Just wondering. If I have a div with child elements and i execute .Empty on it, will all the events of the child elements be removed also because the child elements are no longer existing in the DOM? Thanks.
Hi Just wondering. If I have a div with child elements and i execute .Empty on it, will all the events of the child elements be removed also because the child elements are no longer existing in the DOM? Thanks.
Solution alwaysbusy Apr 5, 2024 If it has no references anymore it will be garbage collected by the browser and hence it will also remove the event listeners
If it has no references anymore it will be garbage collected by the browser and hence it will also remove the event listeners
alwaysbusy Expert Licensed User Longtime User Apr 5, 2024 #2 If it has no references anymore it will be garbage collected by the browser and hence it will also remove the event listeners Upvote 0 Solution
If it has no references anymore it will be garbage collected by the browser and hence it will also remove the event listeners