Skip to content
Permalink
Browse files
Fix #13180: don't delegate into SVG <use>
  • Loading branch information
gibson042 authored and dmethvin committed Jan 14, 2013
1 parent 7812aab commit f860e0bd2f7dd228a14704d78ed5208cbe870d01
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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 ) {

0 comments on commit f860e0b

Please sign in to comment.