Skip to content
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

add .not #36

Open
ianstormtaylor opened this issue Jun 7, 2013 · 2 comments
Open

add .not #36

ianstormtaylor opened this issue Jun 7, 2013 · 2 comments

Comments

@ianstormtaylor
Copy link
Contributor

use case:

$('li').not('.selected').doSomething();
@ianstormtaylor
Copy link
Contributor Author

adding this now, @visionmedia question: is it uncouth to use this.forEach to iterate the lists own elements? i notice it could have been used in a bunch of other methods, but instead you use a new for loop each time, why?

@tj
Copy link
Member

tj commented Jun 7, 2013

just to avoid a ton of function calls for big lists etc but not a huge deal either way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants