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

@index is not calculated correctly when there are identical elements in the list #552

Closed
retro opened this issue Nov 17, 2013 · 1 comment · Fixed by #553
Closed

@index is not calculated correctly when there are identical elements in the list #552

retro opened this issue Nov 17, 2013 · 1 comment · Fixed by #553
Milestone

Comments

@retro
Copy link
Contributor

retro commented Nov 17, 2013

Passing list that looks like:

var data = new can.List(['foo', 'bar', 'baz', 'qux', 'foo'])

will break @index calculation. Instead of : 0 1 2 3 4 it will produce 0 1 2 3 0

@imjoshdean
Copy link
Contributor

+1

In hindsight this makes sense, I didn't think about this use case at the time.

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

Successfully merging a pull request may close this issue.

2 participants