When we disabled triggering of clicks, we also killed off blur and focus, this fixes that (bug #1440).

This commit is contained in:
John Resig 2007-07-31 02:22:39 +00:00
parent 660490e6f4
commit 4ae80a1e2c

View file

@ -153,7 +153,7 @@ jQuery.event = {
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 ]();
}