aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Serduke <davidserduke@gmail.com>2007-11-27 19:20:36 +0000
committerDavid Serduke <davidserduke@gmail.com>2007-11-27 19:20:36 +0000
commitb26da08821ef07860b489ea2450f672ea155ca88 (patch)
tree1b58d5fbb25c2e4e605b4298ea9934f7ae0e28b8
parent1a2fdafd386a8f7be8b633634a684969921f8b8f (diff)
downloadjquery-b26da08821ef07860b489ea2450f672ea155ca88.tar.gz
jquery-b26da08821ef07860b489ea2450f672ea155ca88.zip
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.
-rw-r--r--src/event.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index 9922e0219..6475cd925 100644
--- a/src/event.js
+++ b/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]);