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

New method: notEqualTo #1020

Closed
wants to merge 5 commits into from
Closed

New method: notEqualTo #1020

wants to merge 5 commits into from

Conversation

robotdan
Copy link
Contributor

New method ‘notEqualTo’ that delegates to the notEqual method and
returns the inverted value.

New method ‘notEqualTo’ that delegates to the notEqual method and
returns the inverted value.
@@ -0,0 +1,3 @@
jQuery.validator.addMethod( "notEqualTo", function( value, element, param ) {
return !$.validator.methods.equalTo.call( this, value, element, param );
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this also respect the optional state like other methods do?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had assumed I'd get that for free since I'm delegating to the existing method equalTo? I'll verify that and add if not.

@jzaefferer
Copy link
Collaborator

There are no notifications for new commits, so I never noticed that you added one until now. Trying to merge this now causes merge conflicts - could you rebase this PR and squash it into one commit? Thanks.

@robotdan
Copy link
Contributor Author

robotdan commented Jul 2, 2014

yes.

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.

None yet

2 participants