]> source.dussan.org Git - jquery.git/commitdiff
Fix for #1186
authorBrandon Aaron <brandon.aaron@gmail.com>
Fri, 11 May 2007 21:14:11 +0000 (21:14 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Fri, 11 May 2007 21:14:11 +0000 (21:14 +0000)
src/event/event.js

index 9adf477d05d24a9cf85220ab75796be257970ffb..eb6ee59174028c054f3d787044d92b4adc71f602 100644 (file)
@@ -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 ) {