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

Iterable refactor #16399

Merged
merged 2 commits into from
Mar 24, 2018
Merged

Iterable refactor #16399

merged 2 commits into from
Mar 24, 2018

Conversation

chancancode
Copy link
Member

Need tests for {{#each-in}} + Symbol.iterator/forEach

The requirement is that they support `Symbol.iterator`.
The browsers that don't support are Internet Explorer and phantomjs, every
other browser does.

One caveat of this feature is that iterables are not observables, so each
cannot track updates to them, but the code is structured on a way that
this branch is a fallback, so all special cases where KVO is possible are
handled as they where before.
- Merge native iterable tests to use shared test cases
- Refactor iterable implementations, fix missing/wrong types and type errors
- Introduce `key="@key"` for `{{#each-in}}` (the default)
- Make `key="@Index"` actually use the index in `{{#each-in}}`
- Add support for native iterables and `forEach` in `{{#each-in}}`
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 this pull request may close these issues.

4 participants