version 1.2.6:

        // internal only, use hasClass("class")
        has: function( elem, className ) {
            return jQuery.inArray( className, (elem.className ||
elem).toString().split(/\s+/) ) > -1;
        }




very compatible patch:

        // internal only, use hasClass("class")
        has: function( elem, className ) {
            var classes= elem.className || elem;
            if( classes instanceof RegExp ) return !
className.replace( classes, '' );
            return jQuery.inArray( className,
classes.toString().split(/\s+/) ) > -1;
        }




true way ;-):

        // internal only, use hasClass("class")
        has: function( elem, className ) {
            return !className.replace( elem.className || elem, '' );
        }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to