From the jQuery 1.7rc1 source code (lines 1822-24):
if ( jQuery.isArray( name ) ) {
name = name;
}
What’s the point of having name = name? Could the two names be different?
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 think it is added for readability. The name should be an array, which it isn’t always. In some cases it it converted to an array, but in this case, it is good ‘as is’.
The whole fragment: