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

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

Expand Messages
  • saj14saj
    ... 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
    Message 1 of 5 , 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...
    Your message has been successfully submitted and would be delivered to recipients shortly.