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

Provide a way to use Collections.reverse(...) in el #257

Closed
xfr-dev opened this Issue Jun 1, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@xfr-dev

xfr-dev commented Jun 1, 2016

I think it would be useful to be able to use Collections.reverse(...) in el. Using directly a function or indirectly by converting to an array first.

BalusC added a commit that referenced this issue Jun 3, 2016

@BalusC

This comment has been minimized.

Show comment
Hide comment
@BalusC

BalusC Jun 8, 2016

Member

The view isn't supposed to directly manipulate the model, so Collections#reverse(), which would directly reflect changes back in the model, isn't a good idea. I have at least added #{of:reverseArray()} which returns a copy of the given array, in reversed order.

It's available in 2.4-SNAPSHOT.

Member

BalusC commented Jun 8, 2016

The view isn't supposed to directly manipulate the model, so Collections#reverse(), which would directly reflect changes back in the model, isn't a good idea. I have at least added #{of:reverseArray()} which returns a copy of the given array, in reversed order.

It's available in 2.4-SNAPSHOT.

@BalusC BalusC closed this Jun 8, 2016

@xfr-dev

This comment has been minimized.

Show comment
Hide comment
@xfr-dev

xfr-dev Jun 10, 2016

Ok, i agree with you statement and i will test this as soon as possible. Thank you.

xfr-dev commented Jun 10, 2016

Ok, i agree with you statement and i will test this as soon as possible. Thank you.

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