Bug Tracker

Changeset 2785

Show
Ignore:
Timestamp:
08/20/07 03:59:34 (1 year ago)
Author:
jeresig
Message:

Make jQuery work without warnings in strict mode, in Firefox.

Location:
trunk/jquery/src
Files:
2 modified

Legend:

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

    r2783 r2785  
    197197            // if preventDefault exists run it on the original event 
    198198            if (originalEvent.preventDefault) 
    199                 return originalEvent.preventDefault(); 
     199                originalEvent.preventDefault(); 
    200200            // otherwise set the returnValue property of the original event to false (IE) 
    201201            originalEvent.returnValue = false; 
     
    204204            // if stopPropagation exists run it on the original event 
    205205            if (originalEvent.stopPropagation) 
    206                 return originalEvent.stopPropagation(); 
     206                originalEvent.stopPropagation(); 
    207207            // otherwise set the cancelBubble property of the original event to true (IE) 
    208208            originalEvent.cancelBubble = true; 
  • trunk/jquery/src/fx/fx.js

    r2423 r2785  
    341341                    e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop ); 
    342342            }); 
     343 
     344            // For JS strict compliance 
     345            return true; 
    343346        }); 
    344347    },