From 778894324db1bed65710967ba664f21f5d716106 Mon Sep 17 00:00:00 2001 From: David Schnur Date: Sun, 3 Feb 2013 12:48:08 -0500 Subject: [PATCH] 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. --- jquery.flot.pie.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.flot.pie.js b/jquery.flot.pie.js index dfd51da..11c1dbd 100644 --- a/jquery.flot.pie.js +++ b/jquery.flot.pie.js @@ -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 = [];