From 6cd3cb9887668bdbe764719c789c9814f53a3aa2 Mon Sep 17 00:00:00 2001 From: David Schnur Date: Sun, 15 Sep 2013 12:30:27 -0700 Subject: [PATCH] Prevent options from becoming global. The pie plugin was a little too clever in its use of closures. In processDatapoints it set canvas, target, and options for use in other functions. Since options was not declared this meant that it became global. Pages containing multiple pie plots therefore saw a range of weird effects resulting from earlier plots receiving some of the options set by later ones. Resolves #1128, resolves #1073, resolves #1055. --- jquery.flot.pie.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jquery.flot.pie.js b/jquery.flot.pie.js index a4b538a..9915863 100644 --- a/jquery.flot.pie.js +++ b/jquery.flot.pie.js @@ -69,6 +69,7 @@ More detail and specific examples can be found in the included HTML file. var canvas = null, target = null, + options = null, maxRadius = null, centerLeft = null, centerTop = null,