News for hackers. Stuff that matters.

ivquatch

Re:JavaScript Interview Question on Thursday January 20, 2011 @01:37PM (#2124704)
Probably not the best way to do it, but I've done something like this before.

els[i].addEventListener("click",(new function(){var this._i = i; function message(){alert(_i);}}).message);