Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find unsupported / deprecated jQuery functions in a JS file?

Is there a website or a tool where I can enter some jQuery code and it will show me whether unsupported / deprecated functions are used in this code?

This would be really nice...

like image 968
Simon Avatar asked Oct 10 '11 16:10

Simon


2 Answers

jQuery lint should do the job:

http://james.padolsey.com/javascript/jquery-lint/

like image 121
Sunjay Varma Avatar answered Oct 12 '22 20:10

Sunjay Varma


jQuery now provide a migrate plugin (1.4.1 & 3.0+) to display warnings on any use of deprecated functions in browser console:

https://github.com/jquery/jquery-migrate/#readme

like image 28
yidc Avatar answered Oct 12 '22 18:10

yidc