hello,
https://api.jquery.com/hover/ not found any thing deprecated !
also here https://api.jquery.com/category/deprecated/ hover is not available
can you please send details links where you found its deprecated.
thanks
Thread Starter
Malae
(@malae)
Hello,
Thanks for your quick response. I am using the jQuery Migrate plugin and it logs deprecations as they occur. The jQuery.fn.hover() is deprecated warning came from this plugin. When looking to fix it and Googled it, I came across several postings in Stack Overflow e.g. https://github.com/KingSora/OverlayScrollbars/issues/66
Now, after checking further, it appears that you are correct and there is no mention in the JQuery API of it being deprecated. A false positive from jQuery migrate, although some postings debated that it was deprecated, but not yet documented.
My fix was simply to change to .on('mouseenter mouseleave' function() and this does stop the deprecated jQuery warning.
Sorry for any confusion, I will be more careful; to check the jQuery API next time.
hi,
I have seen this article https://github.com/KingSora/OverlayScrollbars/issues/66 as well, but confusion creates as nothing found in official jQuery site!
Anyway I have changed jQuery.fn.hover() to .on('mouseenter mouseleave' function() please check and update to the latest version 3.1.0
thanks
Thread Starter
Malae
(@malae)
Hello.
I updated the plugin to version 3.1.0 and the deprecated warning came back!
Checking the cnss.js file, I saw that .hover(function() is still showing in lines 2 and 15. Did the update have the old file?
hello,
Sorry I missed that file to update, please check now, I did not update the version just update that file cnss.js only.
thanks