Skip to content

Commit

Permalink
Moves mouse properties to mouseProps
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Sep 23, 2011
1 parent c80ad25 commit 87e1c62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/event.js
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 87e1c62

Please sign in to comment.