News for hackers. Stuff that matters.
Re:JSHint: An Community Driven Fork of JSLint by daleharvey on Friday February 18, 2011 @03:37PM (#2237144)
That error would have happened despite if the var was declared at the top or in the loop

    addEventListener("stuff", function() {
        return function(index) {
            alert(index);
        }
    }(i);
is the fix, either way
Re:JSHint: An Community Driven Fork of JSLint by isak2 on Friday February 18, 2011 @04:01PM (#2237247)
Yeah. I meant that the mistake is less likely to have been made in the first place.