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

fix(wire): add lowercase wirecontextevent #1679

Merged
merged 2 commits into from
Jan 17, 2020
Merged

Conversation

kevinv11n
Copy link
Contributor

Details

Accept wirecontextevent to avoid engine warnings about event names.

WireContextEvent can be removed after all consumers are updated to wirecontextevent.

Does this PR introduce breaking changes?

  • No, it does not introduce breaking changes.

@kevinv11n kevinv11n requested review from jbenallen and caridy January 16, 2020 21:49
Copy link
Contributor

@caridy caridy left a comment

Choose a reason for hiding this comment

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

I'm fine with this change. @jodarove make sure that we also do this in wire reform is we find a way to preserve the old API.

@caridy
Copy link
Contributor

caridy commented Jan 16, 2020

additionally, since this is only going to be use by 2 modules, we can just go with the lower case, and change it there too and completely remove the CamelCase value from the code.

@@ -253,7 +253,7 @@ export class WireEventTarget {
});
this._cmp.dispatchEvent(internalDomEvent);
return false; // canceling signal since we don't want this to propagate
} else if (evt.type === 'WireContextEvent') {
} else if (evt.type === 'WireContextEvent' || evt.type === 'wirecontextevent') {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should probably update the tests for this too to use the lowercase.

@kevinv11n
Copy link
Contributor Author

I plan to issue a subsequent PR to remove WireContextEvent support after @jbenallen removes the single usage of it.

I'll add a test for wirecontextevent.

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