From 14f694f9b9f6e4b17057713ac0d9c43407f905b2 Mon Sep 17 00:00:00 2001 From: Nicolas Morel Date: Sat, 27 Apr 2013 18:23:01 +0200 Subject: [PATCH] Fixed regression on pie plugin on data format allowed (without recursion) --- jquery.flot.pie.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jquery.flot.pie.js b/jquery.flot.pie.js index ebff1a3..3518f69 100644 --- a/jquery.flot.pie.js +++ b/jquery.flot.pie.js @@ -180,6 +180,10 @@ More detail and specific examples can be found in the included HTML file. // new one; this is more efficient and preserves any extra data // that the user may have stored in higher indexes. + if ($.isArray(value) && value.length == 1) { + value = value[0]; + } + if ($.isArray(value)) { if ($.isNumeric(value[1])) { value[1] = +value[1];