Javascript closures can cause memory leaks and should be used with care. Click here to learn more.
The pattern of public, private, and privileged members is possible because JavaScript has closures. What this means is that an inner function always has access to the vars and parameters of its outer function, even after the outer function has returned. There is no book currently available on JavaScript programming that shows how to exploit it.
For a good Javascript book click here.
Javascript closures:
Thursday, January 21, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment