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

Warn on missing event handler properties #5361

Merged
merged 1 commit into from
Nov 3, 2015

Conversation

ali
Copy link
Contributor

@ali ali commented Nov 2, 2015

Fixes #3548. Warns on properties that are case-insensitive matches for registered event names (e.g. "onclick" instead of "onClick").

@facebook-github-bot
Copy link

@ali updated the pull request.

@@ -265,6 +279,16 @@ var EventPluginRegistry = {
delete registrationNameModules[registrationName];
}
}

if (__DEV__) {
var getPossibleRegistrationName = EventPluginRegistry
Copy link
Contributor

Choose a reason for hiding this comment

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

style nit: Can you break after the equals sign instead of before the dot and indent only two spaces?

@sophiebits
Copy link
Contributor

Looks good – thanks so much! Just a couple nits inline. If you could fix those and squash your commits, I think this is good to go.

Fixes facebook#3548. Warns on properties that are case-insensitive matches for
registered event names (e.g. "onclick" instead of "onClick").
@ali ali force-pushed the warn-on-missing-event-handlers branch from b2a8642 to 9ad4be0 Compare November 3, 2015 04:16
@facebook-github-bot
Copy link

@ali updated the pull request.

@sophiebits
Copy link
Contributor

Looks great, thank you so much!

sophiebits added a commit that referenced this pull request Nov 3, 2015
Warn on missing event handler properties
@sophiebits sophiebits merged commit 2858bca into facebook:master Nov 3, 2015
@ali
Copy link
Contributor Author

ali commented Nov 3, 2015

Happy to, thanks for taking the time to review my change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants