]> source.dussan.org Git - jquery.git/commitdiff
Fixed #1970 by returning true instead of false when the mouse moves over a sub-elemen...
authorDavid Serduke <davidserduke@gmail.com>
Tue, 27 Nov 2007 19:20:36 +0000 (19:20 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Tue, 27 Nov 2007 19:20:36 +0000 (19:20 +0000)
src/event.js

index 9922e021914db3a7361a547fc33ad0c80ca94084..6475cd925a289aad5ff95d16dac232ddcd7e814b 100644 (file)
@@ -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]);