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

jquery.hoverIntent.minified.js uses depricated function $.isFunction #6

Open
cterveen opened this issue Oct 23, 2024 · 0 comments
Open

Comments

@cterveen
Copy link

cterveen commented Oct 23, 2024

I just upgraded to Drupal 11 and afterwards the Superfish accordeon menu did not collapse. The following error was shown: Uncaught TypeError: $.isFunction is not a function

$.isFunction is used by jquery.hoverIntent.minified.js twice and was not present in jQuery v4.0.0-beta.2 that comes with Drupal 11.0.5 (while it was still present in jQuery v3.7.1 that came with Drupal 10.3.6).

The big can be fixed by replacing:
$.isFunction(cfg.out)||(cfg.out=cfg.over)):cfg=$.isFunction(handlerOut)
by:
(typeof cfg.out==="function")||(cfg.out=cfg.over)):cfg=(typeof handlerOut==="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

1 participant