mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-26 16:26:44 +03:00
Cleanup some unused code
This commit is contained in:
parent
f706e14a2f
commit
b3b8c97b00
4 changed files with 12 additions and 15 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue