File tree Expand file tree Collapse file tree 1 file changed +2
-32
lines changed
Expand file tree Collapse file tree 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";
1111import "./core/init.js" ;
1212import "./selector.js" ;
1313
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 = / ^ ( [ ^ . ] * ) (?: \. ( .+ ) | ) / ;
1815
1916function returnTrue ( ) {
2017 return true ;
@@ -717,34 +714,7 @@ jQuery.each( {
717714 targetTouches : true ,
718715 toElement : true ,
719716 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
748718} , jQuery . event . addProp ) ;
749719
750720jQuery . each ( { focus : "focusin" , blur : "focusout" } , function ( type , delegateType ) {
You can’t perform that action at this time.
0 commit comments