mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery core: updating a comment, thanks to Scott for spotting it.
This commit is contained in:
parent
afc2ebde14
commit
da76a723e1
@ -774,7 +774,7 @@ jQuery.extend({
|
|||||||
"";
|
"";
|
||||||
},
|
},
|
||||||
|
|
||||||
// internal only, use is(".class")
|
// internal only, use hasClass("class")
|
||||||
has: function( elem, className ) {
|
has: function( elem, className ) {
|
||||||
return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
|
return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user