Permalink
Browse files

Revert "Event: Trigger checkbox and radio click events identically"

This reverts commit b442aba.
  • Loading branch information...
timmywil committed Mar 20, 2017
1 parent 473d2ea commit 4d6b4536b2e0148d4b228884a0b356e73dd8beec
Showing with 7 additions and 11 deletions.
  1. +3 −7 src/event.js
  2. +3 −3 src/manipulation.js
  3. 0 src/{ → manipulation}/var/rcheckableType.js
  4. +1 −1 src/serialize.js
View
@@ -3,15 +3,13 @@ define( [
"./var/document",
"./var/documentElement",
"./var/rnothtmlwhite",
"./var/rcheckableType",
"./var/slice",
"./data/var/dataPriv",
"./core/nodeName",
"./core/init",
"./selector"
], function( jQuery, document, documentElement, rnothtmlwhite,
rcheckableType, slice, dataPriv, nodeName ) {
], function( jQuery, document, documentElement, rnothtmlwhite, slice, dataPriv, nodeName ) {
"use strict";
@@ -477,11 +475,9 @@ jQuery.event = {
},
click: {
// For checkable types, fire native event so checked state will be right
// For checkbox, fire native event so checked state will be right
trigger: function() {
if ( rcheckableType.test( this.type ) &&
this.click && nodeName( this, "input" ) ) {
if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) {
this.click();
return false;
}
View
@@ -2,8 +2,8 @@ define( [
"./core",
"./var/concat",
"./var/push",
"./var/rcheckableType",
"./core/access",
"./manipulation/var/rcheckableType",
"./manipulation/var/rtagName",
"./manipulation/var/rscriptType",
"./manipulation/wrapMap",
@@ -22,8 +22,8 @@ define( [
"./traversing",
"./selector",
"./event"
], function( jQuery, concat, push, rcheckableType,
access, rtagName, rscriptType,
], function( jQuery, concat, push, access,
rcheckableType, rtagName, rscriptType,
wrapMap, getAll, setGlobalEval, buildFragment, support,
dataPriv, dataUser, acceptData, DOMEval, nodeName ) {
File renamed without changes.
View
@@ -1,6 +1,6 @@
define( [
"./core",
"./var/rcheckableType",
"./manipulation/var/rcheckableType",
"./core/init",
"./traversing", // filter
"./attributes/prop"

0 comments on commit 4d6b453

Please sign in to comment.