mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-20 09:11:40 +01:00
Core: Whitespace cleanup
This commit is contained in:
10
src/core.js
10
src/core.js
@@ -391,11 +391,11 @@ $.extend($.validator, {
|
||||
|
||||
this.lastElement = checkElement;
|
||||
|
||||
if (checkElement === undefined) {
|
||||
delete this.invalid[cleanElement.name];
|
||||
if ( checkElement === undefined ) {
|
||||
delete this.invalid[ cleanElement.name ];
|
||||
} else {
|
||||
this.prepareElement( checkElement );
|
||||
this.currentElements = $(checkElement);
|
||||
this.currentElements = $( checkElement );
|
||||
|
||||
result = this.check( checkElement ) !== false;
|
||||
if (result) {
|
||||
@@ -404,8 +404,8 @@ $.extend($.validator, {
|
||||
this.invalid[checkElement.name] = true;
|
||||
}
|
||||
}
|
||||
//Add aria-invalid status for screen readers
|
||||
$(element).attr("aria-invalid", !result);
|
||||
// Add aria-invalid status for screen readers
|
||||
$( element ).attr( "aria-invalid", !result );
|
||||
|
||||
if ( !this.numberOfInvalids() ) {
|
||||
// Hide error containers on last error
|
||||
|
||||
Reference in New Issue
Block a user