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

1921Re: [jslint] option.browser

Expand Messages
  • Douglas Crockford
    Feb 11, 2011
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, "Rob Richardson" <erobrich@...> wrote:
      >
      > I see setTimeout (and cousins) are still in the browser defined list, but
      > would you recomend the same rule of thumb be true for these? E.g. would you
      > recommend "window.setTimeout( func...." rather than "setTimeout( func...."?


      They are global functions, not methods of the window object, so they work correctly without the window. prefix.
    • Show all 8 messages in this topic