posabsolute/jQuery-Validation-Engine — pull request #637 by hackle (2013-03-11 10:07:02+00:00)
Title: equals should be validated even empty

I ran into this when validating passwords.
When editting user profile, it's optional to leave the passwords empty (no-change required), a normal method.

Intended password conditions: "validate[equals[password]]", note there is no "required"! because it's optional!!!

The current version fails to validate such requests as it ignores the "equals" error because the "field.val().length < 1" condition. which is fine for most cases but not for the passwords.

So I added another condition (a 3rd condition) so that even empty password fields should be equal
otherwise if one is filled and another left empty, the "equal" condition would fail
which does not make any sense.

Hope it makes sense to you all.