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 the component helper able to deal with dynamically set falsey values. #10876

Merged
merged 1 commit into from
Apr 24, 2015
Merged

Conversation

nathanhammond
Copy link
Member

The {{component}} helper as it stands is vulnerable to a bound value being updated to undefined (or any falsey value) and then throwing an error, as it previously conflated the component name with a component class. This addresses that by decoupling the component name and class and checking each condition individually. The test fails without the patch, and all other tests pass.

@lukemelia should review this. Related to #10739, it fixes the symptom, not the problem (though there are related bugs, @samselikoff). Glimmer fixes the problem by walking the tree.

@nathanhammond
Copy link
Member Author

Works in IE9 and IE11, busted in IE10. I think Selenium failed and Travis just needs to rerun the job.

@rwjblue
Copy link
Member

rwjblue commented Apr 14, 2015

Restarted

@lukemelia
Copy link
Member

LGTM. Seem like an OK stopgap @krisselden?

@trentmwillis
Copy link
Member

Any update here?

@nathanhammond
Copy link
Member Author

@rwjblue @krisselden I'd really like to ship this with 1.12 and we're closing in on that timeline.

mmun added a commit that referenced this pull request Apr 24, 2015
[BUGFIX beta] Make the component helper able to deal with dynamically set falsey values.
@mmun mmun merged commit 3b8ad3f into emberjs:master Apr 24, 2015
@mmun
Copy link
Member

mmun commented Apr 24, 2015

Thanks.

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.

5 participants