Cleanup some unused code

This commit is contained in:
djmaze 2020-11-10 09:29:00 +01:00
parent f706e14a2f
commit b3b8c97b00
4 changed files with 12 additions and 15 deletions

View file

@ -26,15 +26,12 @@ class AbstractCheckbox extends AbstractComponent {
this.label = params.label || '';
this.inline = !!params.inline;
this.readOnly = !!params.readOnly;
this.inverted = !!params.inverted;
this.labeled = undefined !== params.label;
this.labelAnimated = !!params.labelAnimated;
}
click() {
if (!this.readOnly && this.enable() && !this.disable()) {
if (this.enable() && !this.disable()) {
this.value(!this.value());
}
}