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;
|
this.lastElement = checkElement;
|
||||||
|
|
||||||
if (checkElement === undefined) {
|
if ( checkElement === undefined ) {
|
||||||
delete this.invalid[cleanElement.name];
|
delete this.invalid[ cleanElement.name ];
|
||||||
} else {
|
} else {
|
||||||
this.prepareElement( checkElement );
|
this.prepareElement( checkElement );
|
||||||
this.currentElements = $(checkElement);
|
this.currentElements = $( checkElement );
|
||||||
|
|
||||||
result = this.check( checkElement ) !== false;
|
result = this.check( checkElement ) !== false;
|
||||||
if (result) {
|
if (result) {
|
||||||
@@ -404,8 +404,8 @@ $.extend($.validator, {
|
|||||||
this.invalid[checkElement.name] = true;
|
this.invalid[checkElement.name] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Add aria-invalid status for screen readers
|
// Add aria-invalid status for screen readers
|
||||||
$(element).attr("aria-invalid", !result);
|
$( element ).attr( "aria-invalid", !result );
|
||||||
|
|
||||||
if ( !this.numberOfInvalids() ) {
|
if ( !this.numberOfInvalids() ) {
|
||||||
// Hide error containers on last error
|
// Hide error containers on last error
|
||||||
|
|||||||
Reference in New Issue
Block a user