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

[BUGFIX beta] Make {{get something 'path.goes.here'}} work. #12323

Merged

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Sep 10, 2015

The get keyword should be roughly the same as Ember.get, but previously we were asserting when the path included a .. This was most likely because in the non-dynamic key case we were always using a KeyStream instead of calling source.get(newPath) (a KeyStream will assert when its path includes a . but BasicStream#get will automatically create the correct stream for that path).

This removes the asserts, hard coded KeyStream usage, and adds a number of tests for nested keys.


Fixes #12263.

The `get` keyword should be roughly the same as `Ember.get`, but
previously we were asserting when the path included a `.`. This was most
likely because in the non-dynamic key case we were always using a
`KeyStream` instead of calling `source.get(newPath)` (a `KeyStream` will
assert when its path includes a `.` but `BasicStream#get` will
automatically create the correct stream for that path).

This removes the asserts, hard coded `KeyStream` usage, and adds a
number of tests for nested keys.
@mmun
Copy link
Member

mmun commented Sep 10, 2015

lgtm

rwjblue added a commit that referenced this pull request Sep 10, 2015
…t-helper

[BUGFIX beta] Make `{{get something 'path.goes.here'}}` work.
@rwjblue rwjblue merged commit c5774e3 into emberjs:master Sep 10, 2015
@rwjblue rwjblue deleted the make-nested-paths-work-with-get-helper branch September 11, 2015 00:17
@jmurphyau
Copy link
Contributor

👍🦄

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.

3 participants