Memory release from local variable in javascript
Posted
by Bob
on Stack Overflow
See other posts from Stack Overflow
or by Bob
Published on 2010-04-21T09:02:54Z
Indexed on
2010/04/21
9:13 UTC
Read the original article
Hit count: 255
JavaScript
Quick question.
I have a js function which gets called on the page every few seconds. It's an ajax update thing.
Being a function, I declare local variables. I don't want to use closures or global variables for various reasons.
I'd never considered this, but do I need to release/clear the variables at the end of the function to release memory or will js do this for me automatically ?
Thanks
© Stack Overflow or respective owner