@@ -18,7 +18,6 @@ export interface IValidationEngine {
1818 isValidationInProgress ( ) : boolean ;
1919 validateForm ( vm : any ) : Promise < FormValidationResult > ;
2020 validateField ( vm : any , key : string , value : any , eventsFilter ?: ValidationEventsFilter ) : Promise < FieldValidationResult > ;
21- // TODO: Implement Issue #15
2221 addFieldValidation ( key : string , validation : FieldValidationFunction , eventsFilter ?: ValidationEventsFilter ) : void ;
2322 addFormValidation ( validation : FormValidationFunction ) : void ;
2423 isValidationInProgress ( ) : boolean ;
@@ -61,8 +60,6 @@ export class ValidationEngine implements IValidationEngine {
6160 fieldValidationResults = [ ...fieldValidationResults , ...this . validateGlobalFormValidations ( viewModel ) ] ;
6261 }
6362
64- // TODO: Implement Issue #16 - Error handling
65-
6663 // Once all the single field validations have been resolved
6764 // resolve the fullFormValidatePromise
6865 Promise . all ( fieldValidationResults )
@@ -108,7 +105,7 @@ export class ValidationEngine implements IValidationEngine {
108105 this . asyncValidationInProgressCount ++ ;
109106
110107 const fieldValidationResultPromise = new Promise ( ( resolve , reject ) => {
111- // TODO: this should be encapsulated into two separate functions, Issue #26
108+ // TODO: this should be encapsulated into two separate functions
112109 if ( ! this . isFieldKeyMappingDefined ( key ) ) {
113110 this . asyncValidationInProgressCount -- ;
114111 resolve ( ) ;
0 commit comments