Unit tests and code cleanup

This commit is contained in:
Denys Vuika
2016-11-16 14:22:37 +00:00
committed by Mario Romano
parent 1121a387fd
commit 1032f74100
3 changed files with 112 additions and 8 deletions

View File

@@ -29,6 +29,7 @@ export class WidgetComponent implements AfterViewInit {
@Input()
field: FormFieldModel;
/** @deprecated used only to trigger visibility engine, components should do that internally if needed */
@Output()
fieldChanged: EventEmitter<FormFieldModel> = new EventEmitter<FormFieldModel>();
@@ -79,13 +80,15 @@ export class WidgetComponent implements AfterViewInit {
return false;
}
/** @deprecated use onFieldChanged instead */
/** @deprecated used only to trigger visibility engine, components should do that internally if needed */
checkVisibility(field: FormFieldModel) {
console.log('checkVisibility is deprecated, use onFieldChanged instead');
console.log('WidgetComponent.checkVisibility was used only to trigger visibility engine, components should do that internally if needed');
this.fieldChanged.emit(field);
}
/** @deprecated used only to trigger visibility engine, components should do that internally if needed */
onFieldChanged(field: FormFieldModel) {
console.log('WidgetComponent.onFieldChanged was used only to trigger visibility engine, components should do that internally if needed');
this.fieldChanged.emit(field);
}