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

Core: Add deprecation warning to 'date' method #2138

Merged
merged 1 commit into from Feb 17, 2018

Conversation

Arkni
Copy link
Member

@Arkni Arkni commented Feb 15, 2018

No description provided.

src/core.js Outdated
@@ -1386,6 +1386,16 @@ $.extend( $.validator, {

// https://jqueryvalidation.org/date-method/
date: function( value, element ) {
if ( this.settings.debug && window.console ) {
Copy link
Member

Choose a reason for hiding this comment

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

should we warn only on the first occurence? Doing it all the time could get a perf problem?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. I'll update it shortly.

@staabm staabm merged commit cd206d3 into jquery-validation:master Feb 17, 2018
@staabm
Copy link
Member

staabm commented Feb 17, 2018

Thx

@Arkni Arkni deleted the date-method-warning branch February 17, 2018 11:34
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.

None yet

2 participants