Loading ...
Sorry, an error occurred while loading the content.

1860Re: [jslint] Don't make functions within a loop -- what is the preferered pattern?

Expand Messages
  • saj14saj
    Feb 1, 2011
    • 0 Attachment
      > I believe JSLint is carping because the outer anonymous function is
      > effectively being redefined each time through, even though the definition is
      > static across iterations. [ .... ]

      Thank you, that makes a lot of sense; it didn't occur to me that JSLint was fussing about the outer function, rather than the inner...

      I will try that tomorrow when I am back at work...
    • Show all 5 messages in this topic