After reading this SE Discussion a question pops up. Why jquery defined two methods for the same purpose? Is there any purpose I missed?
Don’t know this belongs to a wiki discussion. If so please guide me to change this so.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would guess someone just didn’t think it through,
unless perhaps the earliest versions had some reason. I could only find source back to.1.2.6, and it is unchanged from the current versionEDIT: It seems to have been unchanged since version 1.0.1.
The documentation for
.size()suggests that it should not be used.