1

I have the Superfish module on my site that my main navigation uses. The site I am building is responsive so I'd like to destroy Superfish when the viewport is smaller than a specific size.

I see that superfish has a destroy method: example.superfish('destroy');

How can I use this method on my nav menu in Drupal? I'm assuming I need to do something like...

Drupal.behaviors.superfish {something here}
1

I have the same issue and I think this is not possible: The destroy() method was implemented in the Superfish jQuery plugin since version 1.7, but the Superfish module uses version 1.4.8 of Superfish jQuery plugin.

  • 2019 – Still1.4.8 in the 7.x branch. – leymannx Oct 21 at 10:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.