Skip to content
Permalink
Browse files

Ref cc324ab: use acceptData to determine when it is safe to add event…

… handlers
  • Loading branch information...
gibson042 committed Jan 16, 2013
1 parent cc324ab commit 50290b8ffb05c504d3866a619f282bf795bc01f6
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}

0 comments on commit 50290b8

Please sign in to comment.
You can’t perform that action at this time.