if ( !fn && element["on"+type] && element["on"+type].apply( element, data ) === false )
val = false;
- if ( fn && val !== false && !jQuery.nodeName(element, 'a') ) {
+ if ( fn && val !== false && !(jQuery.nodeName(element, 'a') && type == "click") ) {
this.triggered = true;
element[ type ]();
}
var p = e.relatedTarget;
// Traverse up the tree
- while ( p && p != this ) try { p = p.parentNode } catch(e) { p = this; };
+ while ( p && p != this ) try { p = p.parentNode; } catch(e) { p = this; };
// If we actually just moused on to a sub-element, ignore it
if ( p == this ) return false;
// Otherwise, remember the function for later
else
// Add the function to the wait list
- jQuery.readyList.push( function() { return f.apply(this, [jQuery]) } );
+ jQuery.readyList.push( function() { return f.apply(this, [jQuery]); } );
return this;
}