Commit 3041b38d authored by Luis Silva's avatar Luis Silva

Fixed Issue #1159 - Bug Redrawing Legend when using custom container

parent 836c9f15
......@@ -2626,7 +2626,10 @@ Licensed under the MIT license.
function insertLegend() {
placeholder.find(".legend").remove();
if (options.legend.container!= null)
$(options.legend.container).html("");
else
placeholder.find(".legend").remove();
if (!options.legend.show)
return;
......
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