Commit 47017263 authored by David Schnur's avatar David Schnur

Additional style fixes on code merged from #1160.

parent 6008cd7a
...@@ -2626,14 +2626,15 @@ Licensed under the MIT license. ...@@ -2626,14 +2626,15 @@ Licensed under the MIT license.
function insertLegend() { function insertLegend() {
if (options.legend.container!= null) { if (options.legend.container != null) {
$(options.legend.container).html(""); $(options.legend.container).html("");
} else { } else {
placeholder.find(".legend").remove(); placeholder.find(".legend").remove();
} }
if (!options.legend.show) if (!options.legend.show) {
return; return;
}
var fragments = [], entries = [], rowStarted = false, var fragments = [], entries = [], rowStarted = false,
lf = options.legend.labelFormatter, s, label; lf = options.legend.labelFormatter, s, label;
......
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