jQuery: The Write Less, Do More JavaScript Library

Changeset 3951

Show
Ignore:
Timestamp:
11/27/07 19:20:36 (8 months ago)
Author:
davidserduke
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/event.js

    r3857 r3951  
    2020        // if data is passed, bind to handler  
    2121        if( data != undefined ) {  
    22             // Create temporary function pointer to original handler  
     22            // Create temporary function pointer to original handler  
    2323            var fn = handler;  
    2424 
     
    349349             
    350350            // If we actually just moused on to a sub-element, ignore it 
    351             if ( parent == this ) return false; 
     351            if ( parent == this )  
     352                return true; 
    352353             
    353354            // Execute the right function