News for hackers. Stuff that matters.
Re:How do JavaScript closures work? by euroclydon on Thursday June 23, 2011 @11:26AM (#2688182)
Could be expanded further to describe when generating multiple functions, each with a reference to an object is a useful design pattern in JavaScript, and when it's a common mistake.
Re:How do JavaScript closures work? by anc2020 on Thursday June 23, 2011 @01:05PM (#2688671)
Could do, but the aim of my answer was to keep it short and simple and not a full reference to closures (there are some good links on this page with more detail for that).