Core: Whitespace cleanup

This commit is contained in:
Jörn Zaefferer
2014-01-14 17:47:12 +01:00
parent 3f464a8da4
commit f7a259254c

View File

@@ -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