Commit b26da088 authored by David Serduke's avatar David Serduke

Fixed #1970 by returning true instead of false when the mouse moves over a...

Fixed #1970 by returning true instead of false when the mouse moves over 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.
parent 1a2fdafd
...@@ -19,7 +19,7 @@ jQuery.event = { ...@@ -19,7 +19,7 @@ jQuery.event = {
// if data is passed, bind to handler // if data is passed, bind to handler
if( data != undefined ) { if( data != undefined ) {
// Create temporary function pointer to original handler // Create temporary function pointer to original handler
var fn = handler; var fn = handler;
// Create unique handler function, wrapped around original handler // Create unique handler function, wrapped around original handler
...@@ -348,7 +348,8 @@ jQuery.fn.extend({ ...@@ -348,7 +348,8 @@ jQuery.fn.extend({
while ( parent && parent != this ) try { parent = parent.parentNode; } catch(error) { parent = this; }; 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 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 // Execute the right function
return (event.type == "mouseover" ? fnOver : fnOut).apply(this, [event]); return (event.type == "mouseover" ? fnOver : fnOut).apply(this, [event]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment