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] Update assertion for events in tagless component to include method names #17930

Merged
merged 1 commit into from
Apr 17, 2019

Conversation

raido
Copy link
Contributor

@raido raido commented Apr 16, 2019

This is a take on to tackle issue: #17929 - to make assertion message a bit more explicit by including offending event handler function name in the message itself.

Additionally I wrapped it into DEBUG flag to avoid shipping this to production at all, not sure if this is a right thing to do. If not I can remove the wrap.

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

@rwjblue rwjblue changed the title [FEATURE tagless-event-assert] Update assertion for events in tagless component [BUGFIX beta] Update assertion for events in tagless component to include method names Apr 17, 2019
@rwjblue rwjblue merged commit 349b138 into emberjs:master Apr 17, 2019
@raido raido deleted the tagless-event-handlers branch April 17, 2019 17:59
@raido
Copy link
Contributor Author

raido commented Apr 17, 2019

👍

Closes: #17929

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.

2 participants