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

hasOwnProperty is not a function using jQuery 4.0.0 #867

Open
BackuPs opened this issue Aug 25, 2024 · 1 comment
Open

hasOwnProperty is not a function using jQuery 4.0.0 #867

BackuPs opened this issue Aug 25, 2024 · 1 comment

Comments

@BackuPs
Copy link

BackuPs commented Aug 25, 2024

When using the cycle sliderwith jquery 4.0 it creates this error data.hasOwnProperty is not a function

It is probably caused because query 4.0? has removed .pusg .sort & .splice

How to fix these issues with jquery 4.0?

Any guidance or solution?

is this js still supported?

@BackuPs BackuPs changed the title hasOwnProperty is not a function hasOwnProperty is not a function using jQuery 4.0.0 Aug 25, 2024
@BackuPs
Copy link
Author

BackuPs commented Aug 25, 2024

The solution is here. https://stackoverflow.com/questions/78910988/jquery-4-0-data-hasownproperty-is-not-a-function

change 2 lines in the js file

     `data = $.extend({}, container.data() || {});`

     `var slideOpts = $.extend({}, slide.data() || {} );`

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

1 participant