@@ -479,8 +479,7 @@ jQuery.event = {
479
479
480
480
// Claim the first handler
481
481
if ( rcheckableType . test ( el . type ) &&
482
- el . click && nodeName ( el , "input" ) &&
483
- dataPriv . get ( el , "click" ) === undefined ) {
482
+ el . click && nodeName ( el , "input" ) ) {
484
483
485
484
// dataPriv.set( el, "click", ... )
486
485
leverageNative ( el , "click" , returnTrue ) ;
@@ -497,8 +496,7 @@ jQuery.event = {
497
496
498
497
// Force setup before triggering a click
499
498
if ( rcheckableType . test ( el . type ) &&
500
- el . click && nodeName ( el , "input" ) &&
501
- dataPriv . get ( el , "click" ) === undefined ) {
499
+ el . click && nodeName ( el , "input" ) ) {
502
500
503
501
leverageNative ( el , "click" ) ;
504
502
}
@@ -539,7 +537,9 @@ function leverageNative( el, type, expectSync ) {
539
537
540
538
// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
541
539
if ( ! expectSync ) {
542
- jQuery . event . add ( el , type , returnTrue ) ;
540
+ if ( dataPriv . get ( el , type ) === undefined ) {
541
+ jQuery . event . add ( el , type , returnTrue ) ;
542
+ }
543
543
return ;
544
544
}
545
545
0 commit comments