[_] Javascript removeChild and event listeners
Iwein Dekoninck
iwein at 3sixty.co.uk
Mon Oct 2 12:16:52 BST 2006
Morning,
Quick question: removing a child node, does this also remove any event
listeners defined on said child or children of said child? Or is it wise
to remove any event listeners before removing said child to prevent
memory leaks?
Iwein
---------------------------------------------------------------
Iwein Dekoninck
3Sixty - Digital Marketing
66 Queens Road, Clifton, Bristol BS8 1QU http://www.3sixty.co.uk/
Telephone: 0117 90 77 360
Direct: 0117 90 77 339
Our latest designs:
http://www.teenweightwise.com/
http://www.armadillomarketing.co.uk/
http://www.bristolairport.co.uk/
3Sixty is a member of the IPA
http://www.ipa.co.uk
---------------------------------------------------------------
Quick question: removing a child node, does this also remove any event
listeners defined on said child or children of said child? Or is it wise
to remove any event listeners before removing said child to prevent
memory leaks?
Iwein
---------------------------------------------------------------
Iwein Dekoninck
3Sixty - Digital Marketing
66 Queens Road, Clifton, Bristol BS8 1QU http://www.3sixty.co.uk/
Telephone: 0117 90 77 360
Direct: 0117 90 77 339
Our latest designs:
http://www.teenweightwise.com/
http://www.armadillomarketing.co.uk/
http://www.bristolairport.co.uk/
3Sixty is a member of the IPA
http://www.ipa.co.uk
---------------------------------------------------------------