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

Access to item of cycle from "if" statement if item name same as list name in object #1240

Closed
stalkerg opened this issue Mar 15, 2018 · 0 comments
Labels

Comments

@stalkerg
Copy link
Contributor

stalkerg commented Mar 15, 2018

Example:
https://svelte.technology/repl?version=1.57.3&gist=f4516e85ec78b9f36191940f00856367

This not working, because for the cycle over an item of an object we should pull up list object to the event handler and in this case, we have names conflict with the item name.
In my opinion, we can just add an underscore to the name of pulling list.

Rich-Harris added a commit that referenced this issue Mar 15, 2018
Rich-Harris added a commit that referenced this issue Mar 15, 2018
Rich-Harris added a commit that referenced this issue Mar 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants