Commit f1248155 authored by David Schnur's avatar David Schnur

Merge pull request #1024 from nmorel/master

Regression on pie plugin in the data format allowed
parents 355b8550 14f694f9
...@@ -180,6 +180,10 @@ More detail and specific examples can be found in the included HTML file. ...@@ -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 // new one; this is more efficient and preserves any extra data
// that the user may have stored in higher indexes. // that the user may have stored in higher indexes.
if ($.isArray(value) && value.length == 1) {
value = value[0];
}
if ($.isArray(value)) { if ($.isArray(value)) {
// Equivalent to $.isNumeric() but compatible with jQuery < 1.7 // Equivalent to $.isNumeric() but compatible with jQuery < 1.7
if (!isNaN(parseFloat(value[1])) && isFinite(value[1])) { if (!isNaN(parseFloat(value[1])) && isFinite(value[1])) {
......
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