John Resig schrieb:
> .hasClass() would just use .is() (or jQuery.filter) internally. Right
> now we're quickly gaining filesize without even adding new features
> (only dealing with bug fixes). For now, .is() will have to suit.
> 
> Another option would be to add an entry for .hasClass() in the
> documentation, but in its details, point the user towards .is()
> instead.
> 
> --John

Think about it: Even the HTML spec speaks of "the element may be said to 
belong to these classes".

Thus it makes totally sense using is() for that. The element in question 
doesn't have classes, it belongs to certain ones, i.e. it *is* of these 
classes.


-- Klaus

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to