Skip to content
Permalink
Browse files

Fixed #1970 by returning true instead of false when the mouse moves o…

…ver a sub-element. The side effect is the event will not stop default behavior and will propagate which it didn't used to. I could find no compelling reason to stop those things from happening.
  • Loading branch information
davids549 committed Nov 27, 2007
1 parent 1a2fdaf commit b26da08821ef07860b489ea2450f672ea155ca88
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/event.js
@@ -19,7 +19,7 @@ jQuery.event = {

// if data is passed, bind to handler
if( data != undefined ) {
// Create temporary function pointer to original handler
// Create temporary function pointer to original handler
var fn = handler;

// Create unique handler function, wrapped around original handler
@@ -348,7 +348,8 @@ jQuery.fn.extend({
while ( parent && parent != this ) try { parent = parent.parentNode; } catch(error) { parent = this; };

// If we actually just moused on to a sub-element, ignore it
if ( parent == this ) return false;
if ( parent == this )
return true;

// Execute the right function
return (event.type == "mouseover" ? fnOver : fnOut).apply(this, [event]);

0 comments on commit b26da08

Please sign in to comment.
You can’t perform that action at this time.