Accordion with hoverIntent

Accordion with hoverIntent


I couldn't find any threads about this so i figured this might come in
handy for someone in the future.
In order to have hoverIntent as a working event in the accordion
(1.5b) you should replace:
if(options.event)
$(container).bind((options.event || "") + ".ui-accordion",
clickHandler);
With this:
if(options.event == "hoverIntent") {
$(container).hoverIntent( clickHandler, function() {} );
} else if(options.event) {
$(container).bind((options.event || "") + ".ui-accordion",
clickHandler);
}
I was also wondering if the actually experienced javascript
programmers here might have something to comment on this. This works
in my website but I'm sure there are plenty of things that can go
wrong now.