adobe/brackets — pull request #782 by gruehle (2012-05-01 20:40:19+00:00)
Title: Remove 'browser' setting from JSLint options

Issue #459

This pull request removes the 'browser' setting from the default JSLint options at the top of our source files. The 'browser' setting allows all browser globals, including `document`, to be accepted. This can cause false positives if you use `document` as a property name on an object.

Where needed, a 'window' global directive was added. Global properties and functions like `document`, `setTimeout()`, etc. are now accessed as `window.document`, `window.setTimeout()`, etc.