How to fix javascript and raphaeljs memory leak?

Posted by luc on Stack Overflow See other posts from Stack Overflow or by luc
Published on 2010-06-16T13:20:11Z Indexed on 2010/06/16 13:22 UTC
Read the original article Hit count: 325

Filed under:
|
|

Hello all,

I have the following code using RapahelJs running in IE. This code cause a memory leak and I don't know what is wrong. Does anybody can help me and give some advices in the usage of raphaeljs and memory leaks.

for (i=0; i<2000; i++) {
    var r = paper.rect(100, 100, 30, 30);
    r.remove();
    r = null;
}

Thanks in advance

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about memory-leaks