Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Fix argument ordering for setComponentTemplate #271

Merged
merged 1 commit into from
Apr 4, 2020

Conversation

pzuraq
Copy link
Member

@pzuraq pzuraq commented Apr 4, 2020

The current implementation has the component class and template parameters backwards. This PR updates the implementation here to match Ember's.

The current setComponentTemplate API differs from the Ember version in
two ways:

1. It's arguments are backwards. It should accept the template value as
   the first value, and the class as the second.
2. It is optional to recieve a component class. In the Ember version, if
   no class is provided, a TemplateOnlyComponent is created instead.

This PR updates the implementation here to match.
@pzuraq pzuraq force-pushed the bugfix/fix-set-component-template-api branch from d5fd0b5 to 849ec5e Compare April 4, 2020 03:05
@pzuraq pzuraq merged commit 581a9d2 into master Apr 4, 2020
@pzuraq pzuraq deleted the bugfix/fix-set-component-template-api branch April 4, 2020 03:27
@pzuraq pzuraq added the breaking label Apr 4, 2020
@rwjblue rwjblue changed the title [BUGFIX][BREAKING] Fixes setComponentTemplate Fix argument ordering for setComponentTemplate Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant