Event: add support comment

Ref gh-2047
This commit is contained in:
Oleg Gaidarenko
2015-03-08 07:11:11 +03:00
parent fac67a9842
commit 9db9316609

View File

@@ -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
// 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 );
}