/**
* Enables the whole validation
*/
- enableValidation(){
+ enableValidation() {
this.isEnabled = true;
}
break;
default:
- if(!$el.val() || !$el.val().length) isGood = false;
+ if (!$el.val() || !$el.val().length) isGood = false;
}
return isGood;
*/
removeErrorClasses($el) {
// radios need to clear all of the els
- if($el[0].type == 'radio') {
+ if ($el[0].type == 'radio') {
return this.removeRadioErrorClasses($el.attr('name'));
}
// checkboxes need to clear all of the els
- else if($el[0].type == 'checkbox') {
+ else if ($el[0].type == 'checkbox') {
return this.removeCheckboxErrorClasses($el.attr('name'));
}
required = true;
}
});
- if(!required) valid=true;
+ if (!required) valid=true;
if (!valid) {
// For the group to be valid, at least one radio needs to be checked
required = true;
}
});
- if(!required) valid=true;
+ if (!required) valid=true;
if (!valid) {
// Count checked checkboxes within the group
}
}
-export {Abide};
+export { Abide };