Skip to content

Commit

Permalink
Merge pull request #5835 from frooeyzanny/decomposeColor-object-short…
Browse files Browse the repository at this point in the history
…hand

[colorManipulator] Shorthand syntax for a color object.
  • Loading branch information
oliviertassinari committed Dec 28, 2016
2 parents febb540 + 2346b8d commit af358a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/colorManipulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function decomposeColor(color) {
let values = color.substring(marker + 1, color.length - 1).split(',');
values = values.map((value) => parseFloat(value));

return {type: type, values: values};
return {type, values};
}

/**
Expand Down

0 comments on commit af358a6

Please sign in to comment.