News for hackers. Stuff that matters.
Re:How do JavaScript closures work? by csomar on Thursday June 23, 2011 @05:09PM (#2689895)
Yes, you are correct (I can't edit right now). You need to return a new function, and a reference actually.

for DOM part, I didn't understand your question. However, the right way to do it is

  $(DOMelement:eq(i)).each();
to iterate through each element.

There are no comments on this comment yet.