Skip to content

Commit

Permalink
Add a comment explaining why extend is being used
Browse files Browse the repository at this point in the history
  • Loading branch information
phts committed Feb 17, 2014
1 parent bc707fe commit 28cc358
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jquery.flot.pie.js
Expand Up @@ -225,7 +225,8 @@ More detail and specific examples can be found in the included HTML file.
var value = data[i].data[0][1];
if (numCombined < 2 || value / total > options.series.pie.combine.threshold) {
newdata.push(
$.extend(data[i], {
$.extend(data[i], { /* extend to allow keeping all other original data values
and using them e.g. in labelFormatter. */
data: [[1, value]],
color: data[i].color,
label: data[i].label,
Expand Down

0 comments on commit 28cc358

Please sign in to comment.