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

improved style deprecation message #14707

Merged
merged 1 commit into from
Feb 25, 2017
Merged

Conversation

IgorKvasn
Copy link
Contributor

Second attempt to accomplish #13728

@locks locks requested a review from rwjblue December 19, 2016 13:55
'please ensure that values being bound are properly escaped. For more information, ' +
'including how to disable this warning, see ' +
'http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes.';
export function constructStyleDeprecationMessage(affectedStyle) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You could maybe use a template string here. How do they treat whitespace?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to use template string as well, but multiline template string produces multiline result - e.g.:

`Hello
world`

produces:

Hello 
world

instead of just Hello world.
I guess this is not the "right" place to use template string - I would have to write the whole deprecation message as single-line which I guess would make the code a little bit messy :(

@stefanpenner stefanpenner merged commit 1c4bbba into emberjs:master Feb 25, 2017
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