Permalink
Browse files

Event: add support comment

  • Loading branch information...
markelog committed Mar 8, 2015
1 parent fac67a9 commit 9db9316609c2881dbb6abc49efc3aa91a57a02ad
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/event.js
View
@@ -26,6 +26,8 @@ function returnFalse() {
return false;
}
+// Support: IE9
+// See #13393 for more info
function safeActiveElement() {
try {
return document.activeElement;
@@ -424,8 +426,11 @@ jQuery.event = {
delegateCount = handlers.delegateCount,
cur = event.target;
+ // Support (at least): Chrome, IE9
// Find delegate handlers
// Black-hole SVG <use> instance trees (#13180)
+ //
+ // Support: Firefox

This comment has been minimized.

Show comment
Hide comment
@mgol

mgol May 4, 2015

Member

There should always be a version range in a support comment, no?

@mgol

mgol May 4, 2015

Member

There should always be a version range in a support comment, no?

This comment has been minimized.

Show comment
Hide comment
@markelog

markelog May 4, 2015

Member

Support comments are still not "standardized"

@markelog

markelog May 4, 2015

Member

Support comments are still not "standardized"

// Avoid non-left-click bubbling in Firefox (#3861)
if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
@@ -626,6 +631,7 @@ jQuery.event = {
};
jQuery.removeEvent = function( elem, type, handle ) {
+ // This "if" is needed for plain objects
if ( elem.removeEventListener ) {
elem.removeEventListener( type, handle, false );
}

0 comments on commit 9db9316

Please sign in to comment.