Menu
[code=html]function addEvent(){
x = document.getElementById(“x”);
if(x.addEventListener){
x.addEventListener(‘click’,function(){/*do something*/},true);
}
//etc
}
Does the (principle behind) above script leak memory via a circular reference involving the dom and js core? and if so what is a practice work around?
I know something like this won’t cause a problem (if it does leak) but im working with some code that is quite complicated and is at the upper end of my knowledge.
THanks