// Claim the first handler
if ( rcheckableType.test( el.type ) &&
- el.click && nodeName( el, "input" ) &&
- dataPriv.get( el, "click" ) === undefined ) {
+ el.click && nodeName( el, "input" ) ) {
// dataPriv.set( el, "click", ... )
leverageNative( el, "click", returnTrue );
// Force setup before triggering a click
if ( rcheckableType.test( el.type ) &&
- el.click && nodeName( el, "input" ) &&
- dataPriv.get( el, "click" ) === undefined ) {
+ el.click && nodeName( el, "input" ) ) {
leverageNative( el, "click" );
}
// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
if ( !expectSync ) {
- jQuery.event.add( el, type, returnTrue );
+ if ( dataPriv.get( el, type ) === undefined ) {
+ jQuery.event.add( el, type, returnTrue );
+ }
return;
}