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

Re: Defining globals

Expand Messages
  • Douglas Crockford
    ... So it would seem. ... /*global CMECF */ See http://www.jslint.com/lint.html#global
    Message 1 of 3 , Aug 18 3:58 PM
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, "Jacob Davenport" <jacob@...> wrote:
      >
      > Am I crazy?

      So it would seem.

      > I thought I could add this comment at the top:
      >
      > /* global CMECF window */
      >
      > And then I could reference my CMECF global (analogous to the YAHOO
      > global) without JSLint complaining. But now it complains. Did that
      > change, or am I missing something?

      /*global CMECF */

      See http://www.jslint.com/lint.html#global
    • jpdavenportjr
      I see the problem. There cannot be a space between /* and global . Just like there cannot be one between /* and jslint , if that s how I decide to
      Message 2 of 3 , Aug 21 1:29 PM
      • 0 Attachment
        I see the problem. There cannot be a space between "/*" and "global". Just like there cannot be one between "/*" and "jslint", if that's how I decide to include options.
      Your message has been successfully submitted and would be delivered to recipients shortly.