Journal M.C. Hampster's Journal: Extreme JavaScript 2
While reading about the Google Mapping API, I came across this article titled "JavaScript Closures". If you've ever used or learned about Ada, it should seem familiar. To those who have never programmed in a language where a function can declare inner functions with closures, it will probably seem like the strangest thing in the world.
Be careful (Score:2)
I just had to go through a bunch of Javascript not to long ago to eliminate closures, as (unfortunately) they didn't listen to me when I said we should embed Mozilla into our product. So, I had to embed IE, and so we're stuck with IE leaking like a sieve.
Re:Be careful (Score:2)
That's mentioned in the article near the bottom.