This project is read-only.


Bug for hover event with jQuery 1.7


If I use the example.htm provided in the download and I change jquery/1.6.2 by jquery/1.7, a bug appears :
in this example :
<div class="rateit" id="rateit5" data-rateit-min="2">
<div> <span id="value5"></span> <span id="hover5"></span> </div> <script type="text/javascript"> $("#rateit5").bind('rated', function (event, value) { $('#value5').text('You\'ve rated it: ' + value); }); $("#rateit5").bind('reset', function () { $('#value5').text('Rating reset'); }); $("#rateit5").bind('hover', function (event, value) { $('#hover5').text('Hovering over: ' + value); }); </script>  
The value of the rate is not displayed anymore in #hover5, only 'undefined' ( nevertheless, other features seems to work : stars are displayed etc...)
This bug appears with jquery 1.7 and 1.7.1 not with 1.6.x : how to solve the problem while using jquery 1.7.x ?
Closed Mar 31, 2012 at 9:27 AM by gidon


gidon wrote Nov 24, 2011 at 8:57 AM

Thanks for reporting the bug.

I found the problem: triggering/handling of the hover event doesn't work.

I filed a bug with the jquery team:

A quick fix would be to rename the hover event inside RateIt. Though I would first want to await their answer before performing such a move.


ericdupo wrote Nov 25, 2011 at 8:42 AM

Thank you for your reactivity :)

gidon wrote Nov 25, 2011 at 12:05 PM

Update: the jQuery team accepted the bug report, and it will be fixed in the next release.

gidon wrote Mar 31, 2012 at 9:27 AM

Resolved with changeset 16115.

gidon wrote Mar 31, 2012 at 9:32 AM

The 'hover' event got an extra name: 'over' . Because the bug leading to this is not fixed yet in jQuery.