Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#1754 closed bug (invalid)

g has no properties - @ line 1918

Reported by: threedot1 Owned by:
Priority: major Milestone: 1.2.2
Component: event Version: 1.2.1
Keywords: g has no properties firefox 2007 Cc:
Blocked by: Blocking:

Description

$(document).ready(function(){

$('body > div').hover(function(){

alert('threedot is googleman');

});

});

Change History (2)

comment:1 Changed 13 years ago by davidserduke

the function hover() needs two parameters. The first is called when the mouse is over the hover object and the second is called when the mouse leaves it.

$(document).ready(function(){ 
  $('body > div').hover(function(){ 
    alert('entered the hover object); 
  }, function (){
    alert('left the hover object);
  }); 
}); 

I don't believe this is a bug unless you have additional information.

comment:2 Changed 13 years ago by brandon

Resolution: invalid
Status: newclosed

As David mentioned, the hover helper takes two methods.

http://docs.jquery.com/Events/hover#overout

Note: See TracTickets for help on using tickets.