mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
DEV: Use method definition syntax consistently (#14915)
This commit is contained in:
@ -567,7 +567,7 @@ function pieChartConfig(data, labels, opts = {}) {
|
||||
plugins: {
|
||||
legend: {
|
||||
labels: {
|
||||
generateLabels: function () {
|
||||
generateLabels() {
|
||||
return labels.map((text, index) => {
|
||||
return {
|
||||
fillStyle: getColors(data.length)[index],
|
||||
|
Reference in New Issue
Block a user