mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 09:07:59 -05:00
testrunner: adding tests for $.fn.hasClass.
This commit is contained in:
@@ -350,7 +350,7 @@ jQuery.fn = jQuery.prototype = {
|
||||
},
|
||||
|
||||
hasClass: function( selector ) {
|
||||
return this.is( "." + selector );
|
||||
return !!selector && this.is( "." + selector );
|
||||
},
|
||||
|
||||
val: function( value ) {
|
||||
|
||||
Reference in New Issue
Block a user