Make sure that there are some live events before continuing on.

This commit is contained in:
jeresig 2010-02-12 19:38:57 -05:00
parent 5d36fe3210
commit 8404ad6070

View file

@ -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;
}