Skip to main content

Bug Tracker

Side navigation

#1754 closed bug (invalid)

Opened September 30, 2007 02:11AM UTC

Closed October 05, 2007 08:25PM UTC

Last modified August 11, 2009 06:09AM UTC

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');

});

});

Attachments (0)
Change History (2)

Changed October 01, 2007 11:05PM UTC by davidserduke comment:1

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 October 05, 2007 08:25PM UTC by brandon comment:2

resolution: → invalid
status: newclosed

As David mentioned, the hover helper takes two methods.

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