Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it intentional that "File" is left out of browser default global variables? #2690

Closed
mohsen1 opened this issue Sep 22, 2015 · 0 comments
Closed
Labels

Comments

@mohsen1
Copy link
Contributor

mohsen1 commented Sep 22, 2015

In default variables for browser I don't see File. Although File constructor is not used directly it can be used for type checking. For example in my drag and drop code I wrote:

if ($scope.draggedFiles instanceof File) {

File spec: http://www.w3.org/TR/FileAPI/#dfn-file

mohsen1 added a commit to mohsen1/jshint that referenced this issue Sep 22, 2015
File was left out of browser global variables

Fixes jshint#2690
@lukeapage lukeapage added the P3 label Sep 22, 2015
mohsen1 added a commit to mohsen1/jshint that referenced this issue Sep 22, 2015
`File` and `FileList` were left out of browser global variables

Fixes jshint#2690
jugglinmike pushed a commit to jugglinmike/jshint that referenced this issue Jan 2, 2016
`File` and `FileList` were left out of browser global variables

Fixes jshint#2690
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants