mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +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 ) {
|
hasClass: function( selector ) {
|
||||||
return this.is( "." + selector );
|
return !!selector && this.is( "." + selector );
|
||||||
},
|
},
|
||||||
|
|
||||||
val: function( value ) {
|
val: function( value ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user