In the the following screenshot you can see what I mean http://screencast.com/t/WMNkQ11CxSi:
I need to disable this notice for jQuery. Please help me.
In the the following screenshot you can see what I mean http://screencast.com/t/WMNkQ11CxSi:
I need to disable this notice for jQuery. Please help me.
I've just tried and I think the issue may be related to the fact that Webstorm doesn't have jQuery at hand.
Normally that happens if you're linking jQuery in your HTML within the CDN for example:
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
If you look carefully, you'll notice that the //code.jquery.com/jquery-1.10.2.min.js
is highlighted and if you put your mouse over, you'll see:
If you click on that and press ALT + Enter
, Webstorm will download the library and inspections will be fine.
If you want, you can go also to Preferences > JavaScript > Libraries and either Add
it manually somewhere in your computer or even Download
them.
Unfortunately this dosen't work for me. I've just found what's my problem. I use jQuery expern file for google closure compiler https://code.google.com/p/closure-compiler/source/browse/contrib/externs/jquery-1.9.js and in the top of this file is the following
/**
* @constructor
* @param {(jQuerySelector|Element|Object|Array.<Element>|jQuery|string|
* function())=} arg1
* @param {(Element|jQuery|Document|
* Object.<string, (string|function(!jQuery.event=))>)=} arg2
* @return {!jQuery}
*/
function jQuery(arg1, arg2) {}
Due the jsdoc above @constructor tag I get my problem