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

Improve performance of get() for negative indices. Fixes #5476. #102

Merged
1 commit merged into from Dec 6, 2010

Conversation

jitter
Copy link
Contributor

@jitter jitter commented Nov 19, 2010

Check the bug ticket for discussion and a performance test.

This commit also fixes an inconsistency in the return values of get() e.g.

bar


$("#foo").get(0) //yields the element
$("#foo").get(1) //yields undefined
$("#foo").get(-1); //yields the element
$("#foo").get(-2); //still yields the element #foo instead of undefined
//new version return undefined for the last use case

@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant