Open anton100 opened 6 years ago
Seconded. I'm getting this error sporadically, every other time I load the page:
TypeError: a.indexOf is not a function
My site has a slideshow that takes up most of the page, so the animation improvements in jQuery 3 would be helpful to have.
I did some searching and realized it was a very easy fix, so I forked the repo and fixed it. In jQuery 3, .load
is removed and needs to be changed to .on('load')
Download here: https://github.com/zakgreene/cycle2/raw/master/build/jquery.cycle2.min.js
Great Zak, i'm gonna try it.
Tried the fix with jQuery 3, the 'destroy' and 'reinit' is not working properly. With jQuery 1.12 it's working fine. It's the only function on the page, so why bother...
My security folks won't let me continue to work under an older jquery version, want us to update all to 3.1.4. So I really need a fix for this.
Cycle2 behaves erratic with jQuery 3.xx. Downgrading to jQuery 1.12 solves the problem. Is there a fix for using the newest jQuery? Anton