git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
615a4ce
)
testrunner: adding tests for $.fn.hasClass.
author
Ariel Flesler
<aflesler@gmail.com>
Tue, 16 Dec 2008 00:02:17 +0000
(
00:02
+0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Tue, 16 Dec 2008 00:02:17 +0000
(
00:02
+0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
1d27616
..
32e850f
100644
(file)
--- a/
src/core.js
+++ b/
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 ) {