mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
testrunner: adding tests for $.fn.hasClass.
This commit is contained in:
parent
615a4ce1b4
commit
475f89b651
@ -350,7 +350,7 @@ jQuery.fn = jQuery.prototype = {
|
||||
},
|
||||
|
||||
hasClass: function( selector ) {
|
||||
return this.is( "." + selector );
|
||||
return !!selector && this.is( "." + selector );
|
||||
},
|
||||
|
||||
val: function( value ) {
|
||||
|
Loading…
Reference in New Issue
Block a user