diff --git a/jquery.flot.js b/jquery.flot.js index 4def83c..a52c759 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -2626,11 +2626,12 @@ Licensed under the MIT license. function insertLegend() { - if (options.legend.container!= null) + if (options.legend.container!= null) { $(options.legend.container).html(""); - else + } else { placeholder.find(".legend").remove(); - + } + if (!options.legend.show) return;