updated check for empty string
authorJoshua <jgould@broadinstitute.org>
Wed, 13 Jun 2012 01:06:29 +0000 (21:06 -0400)
committerJoshua <jgould@broadinstitute.org>
Wed, 13 Jun 2012 01:06:29 +0000 (21:06 -0400)
plugins/legend.js

index 9a7caf9..5f7ac7e 100644 (file)
@@ -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 += ':';
   }