From: Joshua Date: Wed, 13 Jun 2012 01:06:29 +0000 (-0400) Subject: updated check for empty string X-Git-Tag: v1.0.0~262^2^2~1 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=5e893479ccd080f111175aa9bd12f9338188173f;p=dygraphs.git updated check for empty string --- diff --git a/plugins/legend.js b/plugins/legend.js index 9a7caf9..5f7ac7e 100644 --- a/plugins/legend.js +++ b/plugins/legend.js @@ -210,7 +210,7 @@ var generateLegendHTML = function(g, x, sel_points, oneEmWidth) { var xOptView = g.optionsViewForAxis_('x'); var xvf = xOptView('valueFormatter'); html = xvf(x, xOptView, labels[0], g); - if(html) { + if(html !== '') { html += ':'; }