-
Notifications
You must be signed in to change notification settings - Fork 264
Please Explain Internal Looping Under .each Docs #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
...
This is not correct. jQuery is a constructor with a prototype definition — when you call |
Oh right. I was wondering how they pulled that off but the thing that lead me to that conclusion was just daisy-chaining a JQ method in the first place. *facepalm. I'll edit. |
I do still think it's worth adding to docs. People .each unnecessarily all the time. |
We could definitely add more about implicit iteration |
The internet groans and creaks under the weight of all the unnecessary .each methods out there. Something like this at the top of the .each docs
NOTE: Most built-in JQuery methods are applied to every element in a selector match. If you don't need to deal with elements on a case by case by case basis and just want to perform the same action on each one, you don't need to use the .each method.
The text was updated successfully, but these errors were encountered: