• Version: 3.2.2

    When running with jQuery migrate, the plugin triggers a bunch of deprecation warnings:

    • JQMIGRATE: jQuery.fn.unbind() is deprecated
    • JQMIGRATE: jQuery.fn.resize() event shorthand is deprecated
    • JQMIGRATE: jQuery.isFunction() is deprecated
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi Matt,

    Please can you post a link to your site so I can take a look? They look valid but I don’t see those warnings on megamenu.com, so I want to compare to your site so I can work out how to get the warnings to show up here.

    Regards,
    Tom

    Thread Starter matt_fw

    (@matt_fw)

    Thanks for the quick reply. The site is under development and access is password-protected. We don’t run jqMigrate in production. However, I can list location of these calls:

    jQuery.resize() in maxmegamenu.js:

    plugin.init = function() {
        ...
        /* line 724 */
        $(window).resize(function() {
            plugin.checkWidth();
        });
    
        $menu.triggerHandler("after_mega_menu_init");
    };

    jQuery.unbind() maxmegamenu.js

    /* line 494 */
            plugin.unbindAllEvents = function() {
                $("ul.mega-sub-menu, li.mega-menu-item, li.mega-menu-row, li.mega-menu-column, a.mega-menu-link, .mega-indicator", menu).off().unbind();
            };

    jQuery.isFunction() maxmegamenu-pro / public.js

    /* Line 33 */
    if ( ! $.isFunction($.fn.hoverIntent) ) {
                return;
            }
    Plugin Author megamenu

    (@megamenu)

    Thanks, I’ll get these fixed in the next update.

    Regards,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Deprecated jQuery functions’ is closed to new replies.