mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added .hasClass() (Simply just passes through to .is()).
This commit is contained in:
parent
6728e3cf74
commit
d2f82aba26
@ -304,6 +304,10 @@ jQuery.fn = jQuery.prototype = {
|
||||
is: function(expr) {
|
||||
return expr ? jQuery.multiFilter(expr,this).length > 0 : false;
|
||||
},
|
||||
|
||||
hasClass: function(expr) {
|
||||
return this.is("." + expr);
|
||||
},
|
||||
|
||||
val: function( val ) {
|
||||
if ( val == undefined ) {
|
||||
|
Loading…
Reference in New Issue
Block a user