News for hackers. Stuff that matters.
Re:JavaScript Interview Question by smysore on Thursday January 20, 2011 @05:42PM (#2125625)
why hasn't anyone suggested this: els[i].addEventListener('click', new Function("","alert("+i+");"),false);

it works fine and it's much shorter and easier to read than nested function declarations

There are no comments on this comment yet.