testrunner: adding tests for $.fn.hasClass.

This commit is contained in:
Ariel Flesler 2008-12-16 00:02:17 +00:00
parent 615a4ce1b4
commit 475f89b651

View file

@ -350,7 +350,7 @@ jQuery.fn = jQuery.prototype = {
}, },
hasClass: function( selector ) { hasClass: function( selector ) {
return this.is( "." + selector ); return !!selector && this.is( "." + selector );
}, },
val: function( value ) { val: function( value ) {