• Resolved Malae

    (@malae)


    Hello,

    I posted more than 6 months ago:
    jQuery.fn.hover() is deprecated /wp-content/plugins/easy-social-icons/js/cnss.js
    After waiting several weeks for an update, I fixed the issue myself.

    Yesterday I installed the new plugin update, but forgot that I had changed the code to fix the deprecated jQuery.fn.hover() issue and now have the deprecated code again, since update did not fix it. Can you please update the cnss.js file.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author cybernetikz

    (@cybernetikz)

    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.

    Plugin Author cybernetikz

    (@cybernetikz)

    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?

    Plugin Author cybernetikz

    (@cybernetikz)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘jQuery.fn.hover() is deprecated’ is closed to new replies.