Skip to content

Event: Warn on fixHooks case when it has no props and only filter #192

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

Merged
merged 1 commit into from
May 17, 2016

Conversation

dmethvin
Copy link
Member

Fixes #190

The single hooks iframe test was getting hairy so the jQuery.event.props test was moved into a separate test.

Fixes jquery#190

The single iframe test was getting too hairy so it was refactored into two
separate tests, on for props and one for fixHooks.
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @markelog and @mgol to be potential reviewers

@@ -11,16 +11,19 @@ jQuery.event.fix = function( originalEvent ) {
props = jQuery.event.props;

if ( props.length ) {
migrateWarn( "jQuery.event.props are deprecated and removed" );
migrateWarn( "jQuery.event.props are deprecated and removed: " + props.join() );
Copy link
Member Author

Choose a reason for hiding this comment

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

This seemed useful info, at least it's something to search for and the name gives a clue as to what might have added it.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 88.288% when pulling da9665e on dmethvin:190-fixhook into 6a325a9 on jquery:master.

while ( props.length ) {
jQuery.event.addProp( props.pop() );
if ( fixHook && !fixHook._migrated_ ) {
fixHook._migrated_ = true;
Copy link
Member Author

Choose a reason for hiding this comment

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

I struggled with exactly how to do this. Alternatively I could keep some sort of flag inside Migrate as to whether I've warned yet for this fixHook.

@dmethvin
Copy link
Member Author

Coverage really didn't decrease, coveralls doesn't see the tests that happen in the iframe.

@dmethvin dmethvin merged commit da9665e into jquery:master May 17, 2016
@dmethvin dmethvin deleted the 190-fixhook branch August 4, 2016 12:39
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.

4 participants