Opened 14 years ago
Closed 14 years ago
#3198 closed bug (invalid)
hover function causes jquery crash "g is undefined"
Reported by: | hendler | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | core | Version: | 1.2.6 |
Keywords: | hover | Cc: | |
Blocked by: | Blocking: |
Description
Hover fails when applied to a css class that is nested in an element that is hidden. Replacing the hover function with a click()
function eliminates the crash.
This in a custom Drupal module where the offending code is:
$('.iid-title').hover(function( ){});
And on page load the .iid-title
class is always nested in:
<div class="fieldset-wrapper" style="height: auto; display: none;">
Change History (2)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
hover() needs 2 functions, not just one. Check the docs. You should use
$('.iid-title').bind('mouseenter',function(){ });
Note: See
TracTickets for help on using
tickets.
Firefox3 - Ubuntu