Bug Tracker

Opened 11 years ago

Closed 11 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 11 years ago by hendler

Firefox3 - Ubuntu

comment:2 Changed 11 years ago by flesler

Resolution: invalid
Status: newclosed

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.