Skip to content

Commit

Permalink
Tidy duplicate item initialisation code
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyTim committed Aug 18, 2024
1 parent 0defbab commit c52e424
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/wheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1110,18 +1110,7 @@ export class Wheel {
action: () => {
const v = [];
for (const item of val) {
v.push(new Item(this, {
backgroundColor: item.backgroundColor,
image: item.image,
imageOpacity: item.imageOpacity,
imageRadius: item.imageRadius,
imageRotation: item.imageRotation,
imageScale: item.imageScale,
label: item.label,
labelColor: item.labelColor,
value: item.value,
weight: item.weight,
}));
v.push(new Item(this, item));
}
return v;
},
Expand Down

0 comments on commit c52e424

Please sign in to comment.