Added .hasClass() (Simply just passes through to .is()).
This commit is contained in:
parent
6728e3cf74
commit
d2f82aba26
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue