News for hackers. Stuff that matters.
Re:JavaScript Interview Question by robterrell on Thursday January 20, 2011 @12:49PM (#2124491)
Wrap the line of code inside the loop inside another function, which will have the effect of binding the iterator i to the desired value before the event handler anonymous function is created.

There are no comments on this comment yet.