Bug Tracker

Modify

Ticket #3198 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 5 years ago by hendler

Firefox3 - Ubuntu

comment:2 Changed 5 years ago by flesler

  • Status changed from new to closed
  • Resolution set to invalid

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

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.