Hello,
Can someone please tell me why this code leaks? The handle count for IE
continues to increase.
var newimage = "url(images/" + res.value[i].Image + ")";
if( imagetd.style.backgroundImage != newimage )
{
imagetd.style.backgroundImage = "";
imagetd.style.backgroundImage = newimage;
}
I'm using a setInterval to call the function. If I comment out the
change of the background, i get no leak.
This doesn't leak:
var newimage = "url(images/" + res.value[i].Image + ")";
if( imagetd.style.backgroundImage != newimage )
{
//imagetd.style.backgroundImage = "";
//imagetd.style.backgroundImage = newimage;
}
Any help would be greatly appreciated.
Thanks