mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Moves mouse properties to mouseProps
This commit is contained in:
parent
c80ad2524e
commit
87e1c62d8e
@ -10,6 +10,7 @@ var rnamespaces = /\.(.*)$/,
|
|||||||
rmouseEvent = /^(?:mouse|contextmenu)|click/,
|
rmouseEvent = /^(?:mouse|contextmenu)|click/,
|
||||||
rkeyEvent = /^(?:key)/,
|
rkeyEvent = /^(?:key)/,
|
||||||
rquickIs = /^([\w\-]+)?(?:#([\w\-]+))?(?:\.([\w\-]+))?(?:\[([\w+\-]+)=["']?([\w\-]*)["']?\])?(?::(first-child|last-child|empty))?$/,
|
rquickIs = /^([\w\-]+)?(?:#([\w\-]+))?(?:\.([\w\-]+))?(?:\[([\w+\-]+)=["']?([\w\-]*)["']?\])?(?::(first-child|last-child|empty))?$/,
|
||||||
|
mouseProps = "layerX layerY clientX clientY offsetX offsetY wheelDelta".split(" "),
|
||||||
quickPseudoMap = {
|
quickPseudoMap = {
|
||||||
"empty": "firstChild",
|
"empty": "firstChild",
|
||||||
"first-child": "previousSibling",
|
"first-child": "previousSibling",
|
||||||
@ -1098,7 +1099,7 @@ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl
|
|||||||
jQuery.event.propHooks[ name ] = function( event, original ) {
|
jQuery.event.propHooks[ name ] = function( event, original ) {
|
||||||
|
|
||||||
if ( !event ) {
|
if ( !event ) {
|
||||||
return "layerX layerY clientX clientY offsetX offsetY wheelDelta".split(" ");
|
return mouseProps;
|
||||||
}
|
}
|
||||||
|
|
||||||
var eventDoc, doc, body,
|
var eventDoc, doc, body,
|
||||||
|
Loading…
Reference in New Issue
Block a user