Moves mouse properties to mouseProps

This commit is contained in:
Rick Waldron 2011-09-23 15:45:19 -04:00
parent c80ad2524e
commit 87e1c62d8e

View File

@ -10,6 +10,7 @@ var rnamespaces = /\.(.*)$/,
rmouseEvent = /^(?:mouse|contextmenu)|click/,
rkeyEvent = /^(?:key)/,
rquickIs = /^([\w\-]+)?(?:#([\w\-]+))?(?:\.([\w\-]+))?(?:\[([\w+\-]+)=["']?([\w\-]*)["']?\])?(?::(first-child|last-child|empty))?$/,
mouseProps = "layerX layerY clientX clientY offsetX offsetY wheelDelta".split(" "),
quickPseudoMap = {
"empty": "firstChild",
"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 ) {
if ( !event ) {
return "layerX layerY clientX clientY offsetX offsetY wheelDelta".split(" ");
return mouseProps;
}
var eventDoc, doc, body,