Reputation: 2694
I was working with the accordion from the jquery-ui website, but even the simple demo wasn't working for me. I traced the error to the hoverintent not being supported with jquery-1.9.1.js but works in 1.8.3.js.
You can copy the script (view source) available here, http://jqueryui.com/accordion/#hoverintent. Change it to this,
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
and it will stop working.
Any suggestions on how I should fix it? All the other part of my code are compatible with jquery-1.9.1.js.
Upvotes: 1
Views: 1080
Reputation: 22329
When testing code in jQuery 1.9.x please also use migrate-js.
A lot of deprecated features have been removed in 1.9.x and the migrate-js contains the removed features and shows you what they are through console messages.
In your case it is as per migrate-js message, it seems that hoverintent is using a removed feature:
JQMIGRATE: jQuery.event.handle is undocumented and deprecated
Adding the migrate-js file reference in addition to 1.9.x makes it work again.
However, as mentioned by Kevin B in the comment on the original post, the code is an example so you either need to upgrade the code yourself or keep the migrate-js file reference in your application, which is not recommended as a permanent solution though.
DEMO - Using 1.9.1 + migrate-js for Hoverintent
There is more on their blog which are a very good read
Upvotes: 1