From 8e82c4cef14af8ccd7e43f5cabdd5372bcca398f Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Wed, 15 Dec 2010 15:43:44 +0000 Subject: [PATCH] Fix bug with backwards compatibility for shadowSize = 0 (report and suggested fix by aspinak) git-svn-id: https://flot.googlecode.com/svn/trunk@285 1e0a6537-2640-0410-bfb7-f154510ff394 --- NEWS.txt | 2 ++ jquery.flot.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.txt b/NEWS.txt index 5c732fe..e051c42 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -114,6 +114,8 @@ Bug fixes: - Fix bug with using aboveData with a background (reported by amitayd). - Fix possible excanvas leak (report and suggested fix by tom9729). +- Fix bug with backwards compatibility for shadowSize = 0 (report and + suggested fix by aspinak). Flot 0.6 diff --git a/jquery.flot.js b/jquery.flot.js index 755efcf..6ff15a9 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -281,7 +281,7 @@ $.extend(true, options.series.points, options.points); if (options.bars) $.extend(true, options.series.bars, options.bars); - if (options.shadowSize) + if (options.shadowSize != null) options.series.shadowSize = options.shadowSize; for (i = 0; i < options.xaxes.length; ++i)