Bug Tracker

Ticket #1754 (closed bug: invalid)

Opened 14 months ago

Last modified 14 months ago

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:
Needs: Review

Description

$(document).ready(function(){

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

alert('threedot is googleman');

});

});

Change History

Changed 14 months 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.

Changed 14 months ago by brandon

  • status changed from new to closed
  • resolution set to invalid

As David mentioned, the hover helper takes two methods.

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

Note: See TracTickets for help on using tickets.