This used to be possible by targetting a li element and running
hideSuperfishUl() on it:
$('#nav li.sfHover').hideSuperfishUl();
...but since I had to make changes to allow multiple menus on a page
have separate options, this doesn't work because hideSuperfishUl() now
takes the options object (which is attached as an expando 'o' to the
menu) as an argument. You can however still manually pass that in like
so:
$('#nav li.sfHover').hideSuperfishUl($('#nav)[o].o);
...and that seems to successfully close any open submenus. It's ugly.
I could do with spending a day trying to find another way of allowing
each menu to have it's own options without having to pass around that
object, but time is hard to come by lately.
Joel Birch.