-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Conversation
9275f87
to
b2a8642
Compare
@ali updated the pull request. |
@@ -265,6 +279,16 @@ var EventPluginRegistry = { | |||
delete registrationNameModules[registrationName]; | |||
} | |||
} | |||
|
|||
if (__DEV__) { | |||
var getPossibleRegistrationName = EventPluginRegistry |
There was a problem hiding this comment.
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?
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").
b2a8642
to
9ad4be0
Compare
@ali updated the pull request. |
Looks great, thank you so much! |
Warn on missing event handler properties
Happy to, thanks for taking the time to review my change! |
Fixes #3548. Warns on properties that are case-insensitive matches for registered event names (e.g. "onclick" instead of "onClick").