malsup / cycle2

2nd gen cycling
899 stars 239 forks source link

cycle2 & center incompatible with JQuery 3.0.0 #778

Open tmb-github opened 8 years ago

tmb-github commented 8 years ago

The indexOf operator that is employed in cycle2 and center's code is causing conflicts with JQuery 3.0.0...apparently this has to do with $(window).load(function() { ... }); vs $(window).on('load', function() { ... }); elsewhere in the code, and parameters passed to:

r.fn.load = function(a, b, c) { var d, e, f, g = this, h = a.indexOf(" ");

...in the minified version are throwing a "a.indexOf is not a function" type error, presumably where "a" is related to the loading. See this StackOverflow article for more info:

https://stackoverflow.com/questions/37738732/jquery-3-0-url-indexof-error

jakeparis commented 8 years ago

Created fix: https://github.com/malsup/cycle2/pull/779