Skip to content

Commit

Permalink
Make sure that there are some live events before continuing on.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Feb 13, 2010
1 parent 5d36fe3 commit 8404ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.js
Expand Up @@ -977,7 +977,7 @@ function liveHandler( event ) {
events = jQuery.data( this, "events" );

// Make sure we avoid non-left-click bubbling in Firefox (#3861)
if ( event.liveFired === this || !events || event.button && event.type === "click" ) {
if ( event.liveFired === this || !events || !events.live || event.button && event.type === "click" ) {
return;
}

Expand Down

0 comments on commit 8404ad6

Please sign in to comment.