Commit d2f82aba authored by John Resig's avatar John Resig

Added .hasClass() (Simply just passes through to .is()).

parent 6728e3cf
......@@ -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 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment