Skip to content
Permalink
Browse files

testrunner: adding tests for $.fn.hasClass.

  • Loading branch information
flesler committed Dec 16, 2008
1 parent 615a4ce commit 475f89b6519c95f730ed04cd3dd715f582873e4d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -350,7 +350,7 @@ jQuery.fn = jQuery.prototype = {
},

hasClass: function( selector ) {
return this.is( "." + selector );
return !!selector && this.is( "." + selector );
},

val: function( value ) {

0 comments on commit 475f89b

Please sign in to comment.
You can’t perform that action at this time.