Skip to content
Permalink
Browse files
Added .hasClass() (Simply just passes through to .is()).
  • Loading branch information
jeresig committed Sep 8, 2007
1 parent 6728e3c commit d2f82aba26e49e957af493b4ed81c025ac5c194b
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core.js
@@ -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 ) {

0 comments on commit d2f82ab

Please sign in to comment.