Commit 77889432 authored by David Schnur's avatar David Schnur

Make the slice total a local variable.

The total is only used within the combine function; it doesn't need to
exist at the top level of the plugin.
parent a1c84203
......@@ -66,7 +66,6 @@ More detail and specific examples can be found in the included HTML file.
maxRadius = null,
centerLeft = null,
centerTop = null,
total = 0,
redraw = true,
redrawAttempts = 10,
shrink = 0.95,
......@@ -217,7 +216,8 @@ More detail and specific examples can be found in the included HTML file.
function combine(data) {
var combined = 0,
var total = 0,
combined = 0,
numCombined = 0,
color = options.series.pie.combine.color,
newdata = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment