Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery externs file for 1.10.x or 2.0.x?

As far as I can tell there is no official jQuery externs file for the 1.10 or 2.0 branch of jQuery. My question is, am I going to run into trouble using the jQuery 1.9 externs file with the 1.10 and 2.0 versions?

like image 830
Frank Hale Avatar asked Jan 03 '14 16:01

Frank Hale


1 Answers

//Update

As @John pointed out, you are better off using the 1.9 externs until 1.10 is available.

If you are missing externs for other libraries then jQuery, and you are not interested in type checking, you could try providing a library itself as an extern for closure compiler.

--externs some-library.js

and suppressing the warnings:

--jscomp_off=externsValidation 

However, be careful with this method. After switching to VERBOSE mode I run into problems like this one.

like image 86
sanchez Avatar answered Oct 10 '22 04:10

sanchez