Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Core: Don't call submitHandler when in debug mode#2193

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

Arkni
Copy link
Member

Fixes#2042

@ArkniArkni mentioned this pull requestJul 29, 2018
src/core.js Outdated
@@ -64,7 +65,8 @@ $.extend( $.fn, {
.appendTo( validator.currentForm );
}

if ( validator.settings.submitHandler ) {
// Only call the submit handler in case the validator is not on debug mode
Copy link
Member

Choose a reason for hiding this comment

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

The comment does not provide value.

Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to write a console.log in debug mode instead?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yeah, you're right! It doesn't have any additional value. I don't know why I wrote that comment in the first place (it was around 2AM when I created this PR). Will remove it in a moment.

As for the console.log, it will not make sense to print that the submitHandler will not be called when it supposed to not be called in the first place. So, we will just let it that way.

staabm reacted with thumbs up emoji
@ArkniArkniforce-pushed thesubmithandler-issue-2042 branch fromd38c997 tob115011CompareJuly 29, 2018 14:40
@ArkniArkni merged commit2037129 intojquery-validation:masterJul 29, 2018
@Arkni
Copy link
MemberAuthor

Thanks for the review@staabm :)

@ArkniArkni deleted the submithandler-issue-2042 branchJuly 29, 2018 14:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@staabmstaabmstaabm approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Arkni@staabm

[8]ページ先頭

©2009-2025 Movatter.jp