From: Brandon Aaron Date: Fri, 11 May 2007 21:14:11 +0000 (+0000) Subject: Fix for #1186 X-Git-Tag: 1.1.3a~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c76f6cd12538301db8608ca088bf0c6816bd13e0;p=jquery.git Fix for #1186 --- diff --git a/src/event/event.js b/src/event/event.js index 9adf477d0..eb6ee5917 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -157,7 +157,7 @@ jQuery.event = { // Empty object is for triggered events with no data event = jQuery.event.fix( event || window.event || {} ); - var c = this.$events[event.type], args = [].slice.call( arguments, 1 ); + var c = this.$events && this.$events[event.type], args = [].slice.call( arguments, 1 ); args.unshift( event ); for ( var j in c ) {