Error jQuery has no method ‘curCSS’

If you upgraded jQuery and found error in console log:

Uncaught TypeError: Object function (e,n){return new x.fn.init(e,n,t)} has no method 'curCSS'

This because curCSS function since jQuery 1.8 has been removed.
http://blog.jquery.com/2012/08/09/jquery-1-8-released/
The solution is simple Just add the following code in your javascript file:

if(!$.isFunction($.fn.curCSS))
$.curCSS = $.css;
$.fn.curCSS = $.fn.css;

Leave a Reply

Your email address will not be published. Required fields are marked *

*