File tree 1 file changed +2
-32
lines changed
1 file changed +2
-32
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ import nodeName from "./core/nodeName.js";
11
11
import "./core/init.js" ;
12
12
import "./selector.js" ;
13
13
14
- var
15
- rkeyEvent = / ^ k e y / ,
16
- rmouseEvent = / ^ (?: m o u s e | p o i n t e r | c o n t e x t m e n u | d r a g | d r o p ) | c l i c k / ,
17
- rtypenamespace = / ^ ( [ ^ . ] * ) (?: \. ( .+ ) | ) / ;
14
+ var rtypenamespace = / ^ ( [ ^ . ] * ) (?: \. ( .+ ) | ) / ;
18
15
19
16
function returnTrue ( ) {
20
17
return true ;
@@ -717,34 +714,7 @@ jQuery.each( {
717
714
targetTouches : true ,
718
715
toElement : true ,
719
716
touches : true ,
720
-
721
- which : function ( event ) {
722
- var button = event . button ;
723
-
724
- // Add which for key events
725
- if ( event . which == null && rkeyEvent . test ( event . type ) ) {
726
- return event . charCode != null ? event . charCode : event . keyCode ;
727
- }
728
-
729
- // Add which for click: 1 === left; 2 === middle; 3 === right
730
- if ( ! event . which && button !== undefined && rmouseEvent . test ( event . type ) ) {
731
- if ( button & 1 ) {
732
- return 1 ;
733
- }
734
-
735
- if ( button & 2 ) {
736
- return 3 ;
737
- }
738
-
739
- if ( button & 4 ) {
740
- return 2 ;
741
- }
742
-
743
- return 0 ;
744
- }
745
-
746
- return event . which ;
747
- }
717
+ which : true
748
718
} , jQuery . event . addProp ) ;
749
719
750
720
jQuery . each ( { focus : "focusin" , blur : "focusout" } , function ( type , delegateType ) {
You can’t perform that action at this time.
0 commit comments