Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

option.browser

  • Loading branch information...
commit df391013a530b38fd24b26e46b7c1bc5984c1a89 1 parent 77ec496
@douglascrockford authored
Showing with 7 additions and 33 deletions.
  1. +4 −32 fulljslint.js
  2. +3 −1 lint.html
View
36 fulljslint.js
@@ -394,49 +394,21 @@ var JSLINT = (function () {
// web browser environment.
browser = {
- addEventListener: false,
- blur : false,
clearInterval : false,
clearTimeout : false,
- close : false,
- closed : false,
- defaultStatus : false,
document : false,
event : false,
- focus : false,
frames : false,
- getComputedStyle: false,
history : false,
Image : false,
- length : false,
location : false,
- moveBy : false,
- moveTo : false,
name : false,
navigator : false,
- onbeforeunload : true,
- onblur : true,
- onerror : true,
- onfocus : true,
- onload : true,
- onresize : true,
- onunload : true,
- open : false,
- opener : false,
Option : false,
parent : false,
- print : false,
- removeEventListener: false,
- resizeBy : false,
- resizeTo : false,
screen : false,
- scroll : false,
- scrollBy : false,
- scrollTo : false,
setInterval : false,
setTimeout : false,
- status : false,
- top : false,
XMLHttpRequest : false
},
bundle = {
@@ -1221,6 +1193,10 @@ var JSLINT = (function () {
};
+ function return_this() {
+ return this;
+ }
+
function F() {} // Used by Object.create
function is_own(object, name) {
@@ -1346,10 +1322,6 @@ var JSLINT = (function () {
}
}
- function return_this() {
- return this;
- }
-
// Produce an error warning.
View
4 lint.html
@@ -109,7 +109,9 @@ <h2 id=global>Global Variables</h2>
such as <code>document</code> and <code>addEventListener</code>. It has the same
effect as this comment:</p>
<blockquote>
-<code>/*global addEventListener: false, blur: false, clearInterval: false, clearTimeout: false, close: false, closed: false, defaultStatus: false, document: false, event: false, focus: false, frames: false, getComputedStyle: false, history: false, Image: false, length: false, location: false, moveBy: false, moveTo: false, name: false, navigator: false, onblur: true, onerror: true, onfocus: true, onload: true, onresize: true, onunload: true, open: false, opener: false, Option: false, parent: false, print: false, resizeBy: false, resizeTo: false, screen: false, scroll: false, scrollBy: false, scrollTo: false, setInterval: false, setTimeout: false, status: false, top: false, XMLHttpRequest: false */</code></blockquote>
+<code>/*global
+clearInterval: false, clearTimeout: false, document: false, event: false, frames: false, history: false, Image: false, location: false, name: false, navigator: false, Option: false, parent: false, screen: false, setInterval: false, setTimeout: false, XMLHttpRequest: false
+*/</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>
Please sign in to comment.
Something went wrong with that request. Please try again.