Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki authored and pekam committed May 15, 2019
1 parent e236f56 commit 4998845
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/vaadin-checkbox-group.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,12 @@

_addCheckboxToValue(value) {
if (this.value.indexOf(value) === -1) {
const update = this.value.slice(0);
update.push(value);
this.value = update;
this.value = this.value.concat(value);
}
}

_removeCheckboxFromValue(value) {
const update = this.value.slice(0);
const index = update.indexOf(value);
update.splice(index, 1);
this.value = update;
this.value = this.value.filter(v => v !== value);
}

_changeSelectedCheckbox(checkbox) {
Expand Down

0 comments on commit 4998845

Please sign in to comment.