Skip to main content

Bug Tracker

Side navigation

Ticket #3847: 3847.diff


File 3847.diff, 0.4 KB (added by dz, January 16, 2009 12:06AM UTC)
Index: core.js
===================================================================
--- core.js	(revision 6116)
+++ core.js	(working copy)
@@ -712,7 +712,7 @@
 
 		// internal only, use hasClass("class")
 		has: function( elem, className ) {
-			return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
+			return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
 		}
 	},

Download in other formats:

Original Format