In the Canvas Clock playground example, a setInterval call is made. A corresponding clearInterval is called when the canvas element turns up null, which I'm guessing is supposed to be associated with the caja frame being killed somehow. Obviously it's good practice to explicitly clean up after yourself, but I just want to make sure that fixing this issue:
http://code.google.com/p/google-caja/issues/detail?id=1492 will make the clearInterval call unnecessary.
The reason I'm wondering is that currently a user
not calling clearInterval is an abuse path, because it starts to spam errors when I kill the frame a la
https://groups.google.com/forum/?fromgroups=#!topic/google-caja-discuss/QnuETYoDP_0. You can replicate this by commenting out the whole if-block surrounding the clearInterval call in the playground example, then loading a different example...errors will start spamming the console.
Anyway, just wanted to make sure there's a path forward on it...not a huge deal.
Thanks!