Skip to main content

Bug Tracker

Side navigation

Ticket #2773: is.diff


File is.diff, 0.4 KB (added by flesler, May 11, 2008 11:20PM UTC)
Index: core.js
===================================================================
--- core.js	(revision 5554)
+++ core.js	(working copy)
@@ -349,7 +349,9 @@
 	},
 
 	is: function( selector ) {
-		return !!selector && jQuery.multiFilter( selector, this ).length > 0;
+		return typeof selector == 'string' ? 
+			jQuery.multiFilter( selector, this ).length > 0 :
+			jQuery.inArray( selector, this ) != -1;
 	},
 
 	hasClass: function( selector ) {

Download in other formats:

Original Format