ide:netbeans-8-warnings-on-javascript-global-objects
Netbeans 8: warnings on javascript global objects
Your page is full of warning on global objects such as FileReader, Google API loader, etc.? This happens because Netbeans obviously can't find any reference in your code and doesn't know what they are.
Solution
Declare the global object in comments using this special syntax /*global var1, var2*/
You can put this “declaration” anywhere in your file and there is no problem even if repeated more than once in the same script, but obviously the best point since we're talking about global var is at the beginning of the file.
NB: you cannot write that special comment-declaration in other ways, nor putting it inside other comments.
ide/netbeans-8-warnings-on-javascript-global-objects.txt · Last modified: 2015/09/02 20:52 by rik