Event: add support comment

(cherry-picked from 9db9316609)

Ref gh-2047
This commit is contained in:
Oleg Gaidarenko 2015-05-02 20:51:03 +03:00
parent 1a067a49d1
commit 0fc5bebb63

View File

@ -24,6 +24,8 @@ function returnFalse() {
return false;
}
// Support: IE9
// See #13393 for more info
function safeActiveElement() {
try {
return document.activeElement;
@ -439,7 +441,10 @@ jQuery.event = {
delegateCount = handlers.delegateCount,
cur = event.target;
// Support (at least): Chrome, IE9
// Find delegate handlers
//
// Support: Firefox
// Black-hole SVG <use> instance trees (#13180)
// Avoid non-left-click bubbling in Firefox (#3861)
if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
@ -669,6 +674,8 @@ jQuery.event = {
jQuery.removeEvent = document.removeEventListener ?
function( elem, type, handle ) {
// This "if" is needed for plain objects
if ( elem.removeEventListener ) {
elem.removeEventListener( type, handle, false );
}