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

Re: [jslint] option.browser

Expand Messages
  • Douglas Crockford
    ... They are global functions, not methods of the window object, so they work correctly without the window. prefix.
    Message 1 of 8 , Feb 11, 2011
    View Source
    • 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.
    Your message has been successfully submitted and would be delivered to recipients shortly.