diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-12-26 18:38:21 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-12-26 18:38:21 -0500 |
commit | e47dfc63090df1af806520fe829639b897309232 (patch) | |
tree | e71c99e8befeab5979248ddffce76d0baca9bd7c | |
parent | c228874db1f70f79b2a0ed4ea4aa1352420a1e2d (diff) | |
download | jquery-e47dfc63090df1af806520fe829639b897309232.tar.gz jquery-e47dfc63090df1af806520fe829639b897309232.zip |
Clean up comments, including browser support levels.
-rw-r--r-- | src/event.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/event.js b/src/event.js index 28689e21c..733e563c2 100644 --- a/src/event.js +++ b/src/event.js @@ -51,7 +51,6 @@ jQuery.event = { } // Handle multiple events separated by a space - // jQuery(...).bind("mouseover mouseout", fn); types = ( types || "" ).match( core_rnotwhite ) || [""]; for ( ; t < types.length; t++ ) { @@ -343,7 +342,7 @@ jQuery.event = { for ( cur = event.target; cur != this; cur = cur.parentNode || this ) { - // Don't process clicks (ONLY) on disabled elements (#6911, #8165, #11382, #11764) + // Ignore clicks (ONLY) on disabled elements (#6911, #8165, #11382, #11764) if ( cur.disabled !== true || event.type !== "click" ) { selMatch = {}; matches = []; @@ -511,7 +510,7 @@ jQuery.event = { beforeunload: { postDispatch: function( event ) { - // Even when returnValue equals to undefined Firefox will still show alert + // Support: Firefox 10+ if ( event.result !== undefined ) { event.originalEvent.returnValue = event.result; } @@ -621,6 +620,7 @@ jQuery.Event.prototype = { }; // Create mouseenter/leave events using mouseover/out and event-time checks +// Support: Chrome 15+ jQuery.each({ mouseenter: "mouseover", mouseleave: "mouseout" @@ -648,6 +648,7 @@ jQuery.each({ }); // Create "bubbling" focus and blur events +// Support: Firefox 10+ if ( !jQuery.support.focusinBubbles ) { jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { |