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

Comments

Projects
None yet
2 participants
@retro
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

This comment has been minimized.

Show comment
Hide comment
@imjoshdean

imjoshdean Nov 17, 2013

Contributor

+1

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

Contributor

imjoshdean commented Nov 17, 2013

+1

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

@daffl daffl closed this in #553 Nov 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment