X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent.js;h=d4a899bdd96b30527fa9ef86f8d607ba8407a9f1;hb=3ae5fbc16a60cf3f41a1c6166a65dd473e904eb1;hp=492724933e47d65449f0fbdcb6fe9183cfa7d6fa;hpb=ab96367f121a5cdbe491fafb35cb041055a28a52;p=jquery.git diff --git a/src/event.js b/src/event.js index 4927249..d4a899b 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 @@ -333,7 +333,7 @@ jQuery.fn.extend({ event.preventDefault(); // and execute the function - return args[this.lastToggle].apply( this, [event] ) || false; + return args[this.lastToggle].apply( this, arguments ) || false; }); }, @@ -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]); @@ -453,5 +454,5 @@ function bindReady(){ // And prevent errors on refresh with events like mouseover // Window isn't included so as not to unbind existing unload events jQuery(window).bind("unload", function() { - $("*").add(document).unbind(); + jQuery("*").add(document).unbind(); });