Skip to content

Commit

Permalink
Fix #13180: don't delegate into SVG <use>
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 authored and dmethvin committed Jan 14, 2013
1 parent 7812aab commit f860e0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/event.js
Expand Up @@ -405,8 +405,9 @@ jQuery.event = {
cur = event.target;

// Find delegate handlers
// Black-hole SVG <use> instance trees (#13180)
// Avoid non-left-click bubbling in Firefox (#3861)
if ( delegateCount && (!event.button || event.type !== "click") ) {
if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {

for ( ; cur != this; cur = cur.parentNode || this ) {

Expand Down

0 comments on commit f860e0b

Please sign in to comment.