Re: [jslint] please help to understand problems reports
- On Sun, Sep 20, 2009 at 10:02 AM, qmaxa <qwiglydee@...> wrote:
> this problems looks esoteric for me.See http://yuiblog.com/blog/2006/09/26/for-in-intrigue/
> "The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype."
> Another problem:For a quick solution, see
> "Be careful when making functions within a loop. Consider putting the function in a closure."
For an explanation of the problem, see
noah at one more bug dot com
Software is fiction, it is imagination. Not many rules apply.
-- Richard Gabriel
- Thank you for explanations and references.
Already got caught in both of these problems.
Now it is much cleaner :)
The book is found and awaits reading.