]> source.dussan.org Git - jquery.git/commitdiff
Moves mouse properties to mouseProps 502/head
authorRick Waldron <waldron.rick@gmail.com>
Fri, 23 Sep 2011 19:45:19 +0000 (15:45 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Fri, 23 Sep 2011 19:45:19 +0000 (15:45 -0400)
src/event.js

index edc8ce5e5467d34fd7b2c6054b1b6c27937e0f86..1ac5a29319421cba5af7937f6bf53f612b252dc8 100644 (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,