Skip to content

Commit

Permalink
refactor: old array conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
0o001 committed Sep 24, 2023
1 parent 9001c6f commit 2056ca3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/checkbox-group/bl-checkbox-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class BlCheckboxGroup extends FormControlMixin(LitElement) {
required = false;

get options(): BlCheckbox[] {
return [].slice.call(this.querySelectorAll(blCheckboxTag));
return [...this.querySelectorAll(blCheckboxTag)];
}

get checkedOptions(): string[] {
Expand Down
2 changes: 1 addition & 1 deletion src/components/dropdown/bl-dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default class BlDropdown extends LitElement {
}

get options(): BlDropdownItem[] {
return [].slice.call(this.querySelectorAll(blDropdownItemTag));
return [...this.querySelectorAll(blDropdownItemTag)];
}

open() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/radio-group/bl-radio-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class BlRadioGroup extends FormControlMixin(LitElement) {
required = false;

get options(): BlRadio[] {
return [].slice.call(this.querySelectorAll(blRadioTag));
return [...this.querySelectorAll(blRadioTag)];
}

get availableOptions(): BlRadio[] {
Expand Down

0 comments on commit 2056ca3

Please sign in to comment.