Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error, compatibility with jQuery 3.0 #460

Open
djidel opened this issue Sep 19, 2016 · 8 comments
Open

Error, compatibility with jQuery 3.0 #460

djidel opened this issue Sep 19, 2016 · 8 comments

Comments

@djidel
Copy link

djidel commented Sep 19, 2016

The use with jQuery 3.0 seems to throw this error:

jquery.min.js:4 Uncaught TypeError: a.indexOf is not a function

Replacing .load(function with .on('load',function seems to solve the problem

Please read jQuery 3.0 breaking changes:
https://jquery.com/upgrade-guide/3.0/#breaking-change-load-unload-and-error-removed

[Edit] The error encountered on plugin version 3.1.3

@antonkulaga
Copy link

Same problem

@malihu
Copy link
Owner

malihu commented Sep 23, 2016

Which plugin version are you using? This was fixed in 3.1.4

@antonkulaga
Copy link

3.1.4 does not work with latest jQuery in my case

@djidel
Copy link
Author

djidel commented Sep 23, 2016

Same error reproduced on plugin version 3.1.5, jQuery version 3.1.1, Google Chrome version 53

@malihu
Copy link
Owner

malihu commented Sep 24, 2016

Do you have a .load(function in your code? Can you post a link so I can check it?

@djidel
Copy link
Author

djidel commented Sep 24, 2016

Sorry, I was wrong, the problem seems to be solved on plugin version 3.1.5
I used the old code on http://manos.malihu.gr/repository/custom-scrollbar/demo/examples/complete_examples.html with jQuery version 3.1.1, that's why I get the error.
Please mark this as resolved.

@malihu
Copy link
Owner

malihu commented Sep 24, 2016

I see. Thanks for the feedback :)

I've updated all examples in plugin archive/github but I haven't updated the ones in the demo as I use older jQuery version. I'll try to update those too as other people that get the code from there might have the same issue.

@malihu
Copy link
Owner

malihu commented Sep 24, 2016

@antonkulaga Please check if you also have .load(function code in your document and change it to .on('load',function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants