jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
2k stars 737 forks source link

Jquery 3.5.1 compatibility #852

Open marcofbb opened 3 years ago

marcofbb commented 3 years ago

Error show:

jquery.min.js?ver=3.5.1:2 Uncaught TypeError: Failed to execute 'animate' on 'Element': 1 argument required, but only 0 present. at Object.trigger (jquery.min.js?ver=3.5.1:2) at HTMLDivElement.<anonymous> (jquery.min.js?ver=3.5.1:2) at Function.each (jquery.min.js?ver=3.5.1:2) at s.fn.init.each (jquery.min.js?ver=3.5.1:2) at s.fn.init.trigger (jquery.min.js?ver=3.5.1:2) at HTMLDivElement.<anonymous> (jquery.jcarousel.js?ver=0.3.0:157) at Function.each (jquery.min.js?ver=3.5.1:2) at s.fn.init.each (jquery.min.js?ver=3.5.1:2) at $.<computed>._trigger (jquery.jcarousel.js?ver=0.3.0:154) at $.<computed>._animate (jquery.jcarousel.js?ver=0.3.0:750)

marcofbb commented 3 years ago

What I did in the file: jquery.jcarousel.js

I was comment the line

if (false === this._trigger ('animate')) {
                 callback.call (this, false);
                 return this;
             }

This was a good interim solution for me.