aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-01-16 14:36:24 -0500
committerRichard Gibson <richard.gibson@gmail.com>2013-01-16 14:36:24 -0500
commit50290b8ffb05c504d3866a619f282bf795bc01f6 (patch)
tree74dda6cdb1d47b943962207ad435d81b2248fc2c
parentcc324abf739669bd2a4669742c994b86c4ad467b (diff)
downloadjquery-50290b8ffb05c504d3866a619f282bf795bc01f6.tar.gz
jquery-50290b8ffb05c504d3866a619f282bf795bc01f6.zip
Ref cc324abf: use acceptData to determine when it is safe to add event handlers
-rw-r--r--src/event.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index 0a85bf43c..6dd8d4a79 100644
--- a/src/event.js
+++ b/src/event.js
@@ -24,9 +24,9 @@ jQuery.event = {
var handleObjIn, eventHandle, tmp,
events, t, handleObj,
special, handlers, type, namespaces, origType,
- // Don't attach events to noData or text/comment nodes (but allow plain objects)
- elemData = elem.nodeType !== 3 && elem.nodeType !== 8 && jQuery._data( elem );
+ elemData = jQuery._data( elem );
+ // Don't attach events to noData or text/comment nodes (but allow plain objects)
if ( !elemData ) {
return;
}