Skip to main content

Bug Tracker

Side navigation

#3198 closed bug (invalid)

Opened July 29, 2008 04:00PM UTC

Closed July 30, 2008 10:42PM UTC

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;">
Attachments (0)
Change History (2)

Changed July 29, 2008 04:01PM UTC by hendler comment:1

Firefox3 - Ubuntu

Changed July 30, 2008 10:42PM UTC by flesler comment:2

resolution: → invalid
status: newclosed

hover() needs 2 functions, not just one. Check the docs.

You should use

$('.iid-title').bind('mouseenter',function(){ });