Skip to main content

Bug Tracker

Side navigation

Ticket #2400: event.js.diff
File event.js.diff, 0.5 KB (added by jrieks, February 23, 2008 12:40PM UTC)
Index: event.js
===================================================================
--- event.js	(revision 4816)
+++ event.js	(working copy)
@@ -242,6 +242,10 @@
 		// Empty object is for triggered events with no data
 		event = jQuery.event.fix( event || window.event || {} ); 
 
+		// make sure event.type is defined
+		if( !event.type )
+		    event.type = "";
+
 		// Namespaced event handlers
 		var parts = event.type.split(".");
 		event.type = parts[0];

Download in other formats:

Original Format