aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-05-02 20:51:03 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-05-03 13:58:16 +0300
commit0fc5bebb63decb57dfe4247ea836fbf402d92ad1 (patch)
tree42f1ce7c280bd6782706f7e51d8a82408df1f74c /src/event.js
parent1a067a49d17e0fb2d487baa797f5c4cdea0337a2 (diff)
downloadjquery-0fc5bebb63decb57dfe4247ea836fbf402d92ad1.tar.gz
jquery-0fc5bebb63decb57dfe4247ea836fbf402d92ad1.zip
Event: add support comment
(cherry-picked from 9db9316609c2881dbb6abc49efc3aa91a57a02ad) Ref gh-2047
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js
index 87ae3a65b..a5b8d597d 100644
--- a/src/event.js
+++ b/src/event.js
@@ -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 );
}