X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent.js;h=6475cd925a289aad5ff95d16dac232ddcd7e814b;hb=b26da08821ef07860b489ea2450f672ea155ca88;hp=492724933e47d65449f0fbdcb6fe9183cfa7d6fa;hpb=ab96367f121a5cdbe491fafb35cb041055a28a52;p=jquery.git diff --git a/src/event.js b/src/event.js index 4927249..6475cd9 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]); @@ -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(); });