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] Fix positional params in contextual components with dot syntax #12626

Merged
merged 1 commit into from
Nov 19, 2015

Conversation

Serabe
Copy link
Member

@Serabe Serabe commented Nov 18, 2015

As reported in #12625, positional parameters were not being rendered correctly
when using the dot syntax. A longer description on the cause of the problem has
been added as a comment to ember-htmlbars/lib/hooks/component.js for future
warning.

Fix #12625

@rwjblue
Copy link
Member

rwjblue commented Nov 18, 2015

LGTM

@mixonic - r?

@Serabe
Copy link
Member Author

Serabe commented Nov 18, 2015

Sauce is failing :(

@rwjblue
Copy link
Member

rwjblue commented Nov 18, 2015

Restarted it.

@@ -59,8 +59,7 @@ ComponentNodeManager.create = function ComponentNodeManager_create(renderNode, e
configureCreateOptions(attrs, createOptions);

// If there is a controller on the scope, pluck it off and save it on the
// component. This allows the component to target actions sent via
// `sendAction` correctly.
// component. This allows the component to target actions sent via // `sendAction` correctly.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lost a newline here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@@ -33,6 +34,29 @@ export default function componentHook(renderNode, env, scope, _tagName, params,
let componentCell = stream.value();
if (isComponentCell(componentCell)) {
tagName = componentCell[COMPONENT_PATH];

/*
* This need to be done to avoid problems with rest positional parameters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This need to be done to avoid

into

Processing positional params before merging into a hash must be done here to avoid

@mixonic
Copy link
Member

mixonic commented Nov 18, 2015

Seems good pending small doc edits :-)

… syntax

As reported in emberjs#12625, positional parameters were not being rendered correctly
when using the dot syntax. A longer description on the cause of the problem has
been added as a comment to `ember-htmlbars/lib/hooks/component.js` for future
warning.

Fix emberjs#12625
@Serabe
Copy link
Member Author

Serabe commented Nov 19, 2015

@mixonic I think I've addressed them all

@rwjblue
Copy link
Member

rwjblue commented Nov 19, 2015

Restarted Sauce

rwjblue added a commit that referenced this pull request Nov 19, 2015
[BUGFIX beta] Fix positional params in contextual components with dot syntax
@rwjblue rwjblue merged commit 9c58ec6 into emberjs:master Nov 19, 2015
@mixonic
Copy link
Member

mixonic commented Nov 19, 2015

thanks @Serabe !

@Serabe
Copy link
Member Author

Serabe commented Nov 19, 2015

👍

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