Skip to content
Browse files

window advice.

  • Loading branch information...
1 parent df39101 commit 097fcc8ed70c089c1ca0b4cd42608bd09891fa07 @douglascrockford douglascrockford committed Feb 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lint.html
View
4 lint.html
@@ -114,9 +114,9 @@ <h2 id=global>Global Variables</h2>
*/</code></blockquote>
<p> The <code>browser</code> <a href="#options">option</a> does
not include the aliases of the global object, <code>window</code> and
- <code>self</code> because the potential for misuse is so great.</p>
+ <code>self</code> because the potential for misuse is so great. If you need access to <code>window</code>, you can write<code> var window; </code>or<code> /*global window*/</code>.</p>
<p id=devel>Select the
- <label for="JSLINT_DEVEL" title="devel"><em>Assume console, alert, ...</em></label>
+ <label for="JSLINT_DEVEL" title="devel"><em>Assume console, alert, ...</em></label>
(<code>devel</code>) <a href="#options">option</a> to predefine globals that are useful in development but that should be avoided in production, such as <code>console</code> and <code>alert</code>. It has the same
effect as this comment:</p>
<pre>/*global alert: false, confirm: false, console: false, Debug: false, opera: false, prompt: false */</pre>

0 comments on commit 097fcc8

Please sign in to comment.
Something went wrong with that request. Please try again.